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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e1f;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background-color: #2b2b2c;
    padding: 30px 20px;
    overflow-y: auto;
    border-right: 1px solid #383838;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.profile {
    text-align: center;
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #00d4ff;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.profile .title {
    color: #00d4ff;
    font-size: 0.9rem;
    margin-bottom: 30px;
    background: #333;
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
}

.contact-info {
    text-align: left;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #333;
    border-radius: 12px;
    border-left: 4px solid #00d4ff;
}

.contact-item .icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-item small {
    display: block;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.contact-item p {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.social-link:hover {
    background: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.icon-svg {
    width: 1.2rem;
    height: 1.2rem;
    max-width: 20px;
    max-height: 20px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(86%) saturate(3151%) hue-rotate(178deg) brightness(101%) contrast(101%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-icon-svg {
    width: 1.1rem;
    height: 1.1rem;
    max-width: 18px;
    max-height: 18px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(100%);
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    margin-left: 300px;
    flex: 1;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: #2b2b2c;
    padding: 20px 40px;
    border-bottom: 1px solid #383838;
    z-index: 100;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #1e1e1f;
    background: #00d4ff;
}

/* Page Content */
.page-content {
    padding: 40px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.page-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: #00d4ff;
    border-radius: 2px;
}

/* About Section */
.about-text {
    margin-bottom: 50px;
}

.about-text p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #2b2b2c;
    border-radius: 15px;
    border: 1px solid #383838;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.service-content p {
    color: #aaa;
    line-height: 1.6;
}

/* Resume Section */
.timeline-section {
    margin-bottom: 50px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00d4ff;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    border: 3px solid #2b2b2c;
}

.timeline-date {
    display: inline-block;
    background: #333;
    color: #00d4ff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #aaa;
    font-size: 1rem;
}

.timeline-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.timeline-content li {
    color: #ccc;
    margin-bottom: 5px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item span {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #5e58fb);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* Achievements Section */
.achievements-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00d4ff 0%, #5e58fb 100%);
    border-radius: 2px;
}

.achievement-milestone {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
}

.achievement-milestone:nth-child(even) .milestone-content {
    margin-left: auto;
    text-align: right;
}

.milestone-content {
    width: 45%;
    position: relative;
}

.milestone-card {
    background: linear-gradient(135deg, #2b2b2c 0%, #1a1a1b 100%);
    border-radius: 25px;
    padding: 35px;
    border: 1px solid #383838;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.milestone-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

.milestone-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff 0%, #5e58fb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 10;
    border: 6px solid #1e1e1f;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.milestone-title h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.milestone-period {
    color: #00d4ff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0, 212, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
}

.milestone-description {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.milestone-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.achievement-tag {
    background: linear-gradient(135deg, #333 0%, #2b2b2c 100%);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 12px 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-tag:hover {
    border-color: #00d4ff;
    transform: translateY(-3px);
}

.achievement-tag .tag-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.achievement-tag .tag-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(94, 88, 251, 0.1) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.external-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(94, 88, 251, 0.2) 100%);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 25px;
}

.preview-thumbnail {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.preview-thumbnail:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #5e58fb 100%);
    color: #ffffff;
    transform: scale(1.05);
}

/* Portfolio Section */
.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: #2b2b2c;
    border: 1px solid #383838;
    border-radius: 25px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: #00d4ff;
    color: #1e1e1f;
    border-color: #00d4ff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #2b2b2c;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 31, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.portfolio-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: #00d4ff;
    margin-bottom: 20px;
}

.portfolio-link {
    padding: 10px 20px;
    background: #00d4ff;
    color: #1e1e1f;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* Photography Section */
.photography-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.photography-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    max-width: 700px;
    margin: 0 auto;
}

.photo-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.photo-filter-tab {
    padding: 10px 25px;
    background: #2b2b2c;
    border: 1px solid #383838;
    border-radius: 25px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.photo-filter-tab:hover,
.photo-filter-tab.active {
    background: #00d4ff;
    color: #1e1e1f;
    border-color: #00d4ff;
}

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

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.photo-category {
    background: rgba(0, 212, 255, 0.9);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Travel Section */
.travel-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.travel-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.world-map-section,
.languages-section,
.travel-philosophy {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.destination-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.destination-flag {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.destination-info h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.destination-info .cities {
    color: #00d4ff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.destination-info .experience {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-style: italic;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.language-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-flag {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.language-details {
    flex: 1;
}

.language-details h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.proficiency {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.native-level {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.fluent-level {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.advanced-level {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.intermediate-level {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.conversational-level {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.language-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 3px;
    transition: width 1s ease;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.philosophy-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.philosophy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.philosophy-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.philosophy-item p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
}

.contact-form {
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: #2b2b2c;
    border: 1px solid #383838;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
}

.send-button {
    background: #00d4ff;
    color: #1e1e1f;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.send-button:hover {
    background: #0099cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #2b2b2c;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.gallery-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-body {
    display: flex;
    height: 70vh;
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e1f;
    padding: 20px;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.9);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: #00d4ff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-sidebar {
    width: 250px;
    background: #333;
    padding: 20px;
    overflow-y: auto;
}

.gallery-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.gallery-info p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gallery-tech h4 {
    color: #00d4ff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #00d4ff;
    color: #1e1e1f;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: #00d4ff;
    transform: scale(1.05);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Hover Effects */
.sidebar .contact-item:hover,
.sidebar .social-link:hover,
.nav-link:hover,
.service-item:hover,
.timeline-item:hover,
.portfolio-item:hover,
.filter-tab:hover,
.send-button:hover,
.skill-item:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.contact-form input:hover,
.contact-form textarea:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.avatar:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item.hidden {
    display: none;
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
    }

    .navbar ul {
        gap: 20px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .achievements-timeline {
        padding: 20px 0;
    }

    .milestone-content {
        width: 42%;
    }

    .milestone-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Mobile Landscape and Small Tablets (768px and below) */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 85%;
        max-width: 320px;
        z-index: 2000;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0);
    }
    
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 2px 0 40px rgba(0, 0, 0, 0.8);
    }
    
    /* Backdrop overlay */
    .sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background 0.4s ease;
        z-index: -1;
    }
    
    .sidebar.active::before {
        background: rgba(0, 0, 0, 0.7);
        pointer-events: auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 12px 20px;
        position: sticky;
        display: flex;
        align-items: center;
        gap: 15px;
        backdrop-filter: blur(10px);
        background: rgba(43, 43, 44, 0.95);
        border-bottom: 1px solid rgba(56, 56, 56, 0.8);
    }
    
    .navbar ul {
        flex: 1;
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 5px 0;
        margin: 0;
        scroll-behavior: smooth;
    }

    .navbar ul::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
        white-space: nowrap;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .nav-link:hover {
        background: rgba(0, 212, 255, 0.2);
        transform: translateY(-1px);
    }
    
    .nav-link.active {
        background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
        border-color: #00d4ff;
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        font-size: 1.3rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
        z-index: 1001;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    }
    
    .mobile-menu-toggle:active {
        transform: translateY(0);
    }

    /* Page Content */
    .page-content {
        padding: 20px;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }

    /* About Section */
    .about-text p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        font-size: 2rem;
    }

    /* Resume Section */
    .timeline {
        padding-left: 25px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-marker {
        left: -33px;
        width: 10px;
        height: 10px;
    }

    .timeline-content h4 {
        font-size: 1.1rem;
    }

    .timeline-date {
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Achievements Section - Mobile */
    .timeline-track {
        left: 30px;
    }
    
    .achievement-milestone:nth-child(even) .milestone-content,
    .achievement-milestone:nth-child(odd) .milestone-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        text-align: left;
    }
    
    .milestone-icon {
        left: 30px;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .milestone-card {
        padding: 20px;
    }

    .milestone-title h3 {
        font-size: 1.3rem;
    }

    .milestone-period {
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    .milestone-description {
        font-size: 0.95rem;
    }
    
    .milestone-achievements {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .achievement-tag {
        padding: 10px 15px;
    }

    .achievement-tag .tag-icon {
        font-size: 1.3rem;
    }

    .achievement-tag .tag-text {
        font-size: 0.85rem;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .preview-thumbnail {
        font-size: 0.75rem;
    }

    .external-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Portfolio Section */
    .filter-tabs {
        gap: 10px;
        justify-content: center;
    }

    .filter-tab {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-image img {
        height: 200px;
    }

    .portfolio-overlay h4 {
        font-size: 1.3rem;
    }

    /* Photography Section */
    .photography-intro p {
        font-size: 1rem;
    }

    .photo-filter-tabs {
        gap: 10px;
    }

    .photo-filter-tab {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .photography-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    /* Travel Section */
    .travel-intro p {
        font-size: 1rem;
    }

    .world-map-section,
    .languages-section,
    .travel-philosophy {
        padding: 1.5rem;
    }

    .destinations-grid,
    .languages-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .destination-card,
    .language-item {
        padding: 1rem;
    }

    .destination-flag {
        font-size: 2rem;
        min-width: 50px;
    }

    .destination-info h4 {
        font-size: 1.1rem;
    }

    .language-flag {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .language-details h4 {
        font-size: 1rem;
    }

    .philosophy-icon {
        font-size: 2rem;
    }

    .philosophy-item h4 {
        font-size: 1rem;
    }

    .philosophy-item p {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-content {
        max-width: 100%;
    }

    /* Gallery Modal - Mobile */
    .gallery-modal {
        padding: 10px;
    }

    .gallery-content {
        margin: 0;
        max-width: 100%;
        max-height: 100%;
        border-radius: 15px;
    }

    .gallery-header {
        padding: 15px 20px;
    }

    .gallery-title {
        font-size: 1.2rem;
    }

    .gallery-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .gallery-body {
        flex-direction: column;
        height: auto;
        max-height: calc(100vh - 100px);
    }

    .gallery-main {
        min-height: 40vh;
        padding: 10px;
    }

    .gallery-sidebar {
        width: 100%;
        max-height: 40vh;
        padding: 15px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gallery-thumbnail {
        height: 50px;
    }

    .gallery-counter {
        bottom: 10px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* Sidebar Mobile */
    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile h1 {
        font-size: 1.3rem;
    }

    .profile .title {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .contact-item {
        padding: 12px;
        gap: 12px;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .icon-svg {
        width: 1rem;
        height: 1rem;
        max-width: 16px;
        max-height: 16px;
    }
    
    .social-icon-svg {
        width: 0.9rem;
        height: 0.9rem;
        max-width: 14px;
        max-height: 14px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .service-content h4 {
        font-size: 1.1rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .portfolio-overlay h4 {
        font-size: 1.2rem;
    }

    .portfolio-overlay p {
        font-size: 0.9rem;
    }

    .portfolio-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .photography-grid {
        grid-template-columns: 1fr;
    }

    .photo-category {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .destination-info h4,
    .language-details h4 {
        font-size: 1rem;
    }

    .destination-info .cities,
    .destination-info .experience {
        font-size: 0.85rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    .send-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .milestone-title h3 {
        font-size: 1.1rem;
    }

    .milestone-description {
        font-size: 0.9rem;
    }

    .gallery-header {
        padding: 12px 15px;
    }

    .gallery-title {
        font-size: 1rem;
    }

    .gallery-info h3 {
        font-size: 1rem;
    }

    .gallery-info p {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
    .page-content {
        padding: 15px;
    }

    .navbar {
        padding: 12px 15px;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .sidebar {
        width: 100%;
        max-width: 280px;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }

    .profile h1 {
        font-size: 1.2rem;
    }

    .milestone-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        left: 25px;
    }

    .timeline-track {
        left: 25px;
    }

    .achievement-milestone:nth-child(even) .milestone-content,
    .achievement-milestone:nth-child(odd) .milestone-content {
        width: calc(100% - 70px);
        margin-left: 70px;
    }

    .gallery-body {
        min-height: 50vh;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape Mode Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .gallery-body {
        height: auto;
        max-height: 70vh;
    }

    .gallery-main {
        min-height: 50vh;
    }

    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .gallery-modal,
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .page {
        display: block !important;
        page-break-after: always;
    }

    body {
        background: white;
        color: black;
    }
}