:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --border-color: #27272a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.cv-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.profile-section {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1rem;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 4px solid var(--bg-secondary);
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.title-with-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.title-with-lang .title {
    margin: 0;
}

.lang-buttons {
    display: inline-flex;
    gap: 0.25rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.35rem;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    color: #e8eaed;
    background: rgba(99, 102, 241, 0.35);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.lang-btn.active:hover {
    background: rgba(99, 102, 241, 0.45);
    border-color: rgba(99, 102, 241, 0.6);
}

.info-section {
    margin-bottom: 1.75rem;
}

.info-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.info-item:last-child {
    margin-bottom: 0;
}

.icon {
    font-size: 0.9rem;
}

/* Skills */
.skill-group {
    margin-bottom: 1.25rem;
}

.skill-group h4 {
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.skill-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 5px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

.skill-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tags-compact span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.3rem 0.65rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    border: 1px solid var(--border-color);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    padding: 2rem 3rem;
    overflow-y: auto;
}

.content-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.about-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
}

/* Top sections grid - Hakkımda ve Eğitim yan yana */
.top-sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.top-sections-grid .content-section {
    margin-bottom: 0;
}

/* Experience */
.experience-columns {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.experience-column {
    display: contents; /* İçeriği parent'a taşır */
}

.experience-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Zigzag düzeni için grid layout */
@media (min-width: 769px) {
    .experience-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        align-items: start;
    }
    
    .experience-column {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    
    /* İlk kolon - 1. ve 3. deneyim */
    .experience-column:first-child {
        grid-column: 1;
    }
    
    /* İkinci kolon - 2. ve 4. deneyim */
    .experience-column:last-child {
        grid-column: 2;
    }
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.exp-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.period {
    color: var(--text-secondary);
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    padding: 0.3rem 0.65rem;
    border-radius: 0.35rem;
    white-space: nowrap;
}

.exp-details {
    list-style: none;
    padding-left: 0;
}

.exp-details li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.exp-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.edu-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.school {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: var(--bg-secondary);
    padding: 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.project-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
    border-radius: 0.75rem 0.75rem 0 0;
    margin-bottom: 1rem;
}

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

.project-card:hover .project-cover img {
    transform: scale(1.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    padding: 1.25rem 1.25rem 0 1.25rem;
}

.project-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    flex: 1;
}

.project-year {
    color: var(--text-secondary);
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex: 1;
    padding: 0 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    padding: 0 1.25rem;
}

.project-tags span {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.3rem 0.65rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    border: 1px solid var(--border-color);
}

.project-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1.25rem;
    margin: 0 1.25rem 0.6rem 1.25rem;
    width: calc(100% - 2.5rem);
    background: var(--accent-gradient);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-detail-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.project-detail-btn:hover::before {
    width: 300px;
    height: 300px;
}

.project-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.project-detail-btn svg {
    transition: transform 0.3s ease;
}

.project-detail-btn:hover svg {
    transform: translateX(5px);
}

.project-detail-btn span {
    position: relative;
    z-index: 1;
}

/* Proje kartı ek butonları (Proje Detayları altında; admin panelden tanımlanır) */
.project-extra-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem 1.25rem;
    margin-top: 0.35rem;
}
.project-extra-btn {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0.6rem 1rem;
    background: #4a4d52;
    color: #e8eaed;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    cursor: pointer;
}
.project-extra-btn:hover {
    background: #2d5a3a;
    color: #e8f5e9;
}

    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .cv-container {
        grid-template-columns: 320px 1fr;
    }
    
    .main-content {
        padding: 1.75rem 2.5rem;
    }
    
    /* Tablet'te hakkımda ve eğitim yan yana kalabilir */
    .top-sections-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    /* Orta boyutlu ekranlarda hakkımda ve eğitim alt alta */
    .top-sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .cv-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    /* Mobilde hakkımda ve eğitim alt alta */
    .top-sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobilde deneyimleri dikey sırala */
    .experience-columns {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .experience-column {
        display: contents; /* İçeriği parent'a taşır */
    }
    
    .experience-item {
        order: 0; /* Varsayılan sıralama */
    }
    
    /* Mobilde sıralamayı düzelt: 1, 2, 3, 4 şeklinde */
    .experience-column:first-child .experience-item:nth-child(1) { order: 1; }
    .experience-column:last-child .experience-item:nth-child(1) { order: 2; }
    .experience-column:first-child .experience-item:nth-child(2) { order: 3; }
    .experience-column:last-child .experience-item:nth-child(2) { order: 4; }
    .experience-column:first-child .experience-item:nth-child(3) { order: 5; }
    .experience-column:last-child .experience-item:nth-child(3) { order: 6; }
    .experience-column:first-child .experience-item:nth-child(4) { order: 7; }
    .experience-column:last-child .experience-item:nth-child(4) { order: 8; }
    
    .content-section {
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .sidebar {
        padding: 2rem 1.5rem;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .title {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .exp-header,
    .edu-header,
    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .period,
    .project-year {
        align-self: flex-start;
    }
    
    .experience-item,
    .education-item,
    .project-card {
        padding: 1.25rem;
    }
    
    .exp-header h3,
    .edu-header h3 {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .project-detail-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Mobile-specific improvements */
    .info-section {
        margin-bottom: 2rem;
    }
    
    .info-section h3 {
        font-size: 1rem;
    }
    
    .skill-group {
        margin-bottom: 1.25rem;
    }
    
    .social-link {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Better touch targets for mobile */
    .project-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .project-detail-btn {
        min-height: 48px;
    }
    
    /* Smooth scrolling for mobile */
    .sidebar {
        -webkit-overflow-scrolling: touch;
    }
    
    .main-content {
        -webkit-overflow-scrolling: touch;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 600px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: var(--bg-tertiary);
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-enlarge-btn {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slide-enlarge-btn:hover {
    background: rgba(99, 102, 241, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.slide-enlarge-btn svg {
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.slider-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

/* Tam ekran galeri */
.gallery-fullscreen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-fullscreen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.gallery-fullscreen-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 120px);
}

.gallery-fullscreen-inner img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 0.5rem;
}

.gallery-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10;
}

.gallery-fullscreen-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: transparent;
}

.gallery-fullscreen-prev,
.gallery-fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10;
}

.gallery-fullscreen-prev:hover,
.gallery-fullscreen-next:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.gallery-fullscreen-prev { left: 1rem; }
.gallery-fullscreen-next { right: 1rem; }

.gallery-fullscreen-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.gallery-fullscreen-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gallery-fs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.gallery-fs-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.gallery-fs-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-primary);
    width: 30px;
    border-radius: 6px;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-short-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.modal-description {
    margin-bottom: 1.5rem;
}

.modal-description-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-description-col {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.modal-description-col h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.modal-description-col h3:first-child {
    margin-top: 0;
}

.modal-description-col p {
    margin-bottom: 0.75rem;
}

.modal-description-col ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.modal-description-col li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
}

.modal-description-col li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.modal-description-col strong {
    color: var(--accent-primary);
}

.modal-tech {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.modal-tech h3 {
    color: #a1a1aa;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.feature-tag {
    color: #a1a1aa;
}

.feature-tags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0.5rem 0.5rem 0 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .slider-container {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-short-desc {
        font-size: 0.875rem;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .modal-description-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-description-col {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .modal-description-col h3 {
        font-size: 1rem;
        margin-top: 0.75rem;
    }
    
    .modal-description-col h3:first-child {
        margin-top: 0;
    }
    
    .modal-description-col li {
        padding: 0.25rem 0;
    }
    
    .modal-tech {
        padding-top: 1rem;
    }
    
    .modal-tech h3 {
        font-size: 1rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }
    
    .feature-tags-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slider-btn.prev {
        left: 0.5rem;
    }
    
    .slider-btn.next {
        right: 0.5rem;
    }
}
