/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.visitor-counter {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 1rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* First section (About) needs extra padding to account for fixed navbar */
section:first-of-type {
    padding-top: 6rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Section Headers */
.section-header {
    text-align: left;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    text-align: center;
    margin-bottom: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 150px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: none;
}

/* Specific height for Education title */
#education .section-header h2 {
    height: 160px;
}

/* Specific height for Skills title to match content */
#skills .section-header h2 {
    height: 225px;
}

/* Education Section */
#education {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 2rem;
    margin-bottom: 1rem;
}

.education-container {
    display: grid;
    gap: 2rem;
}

.education-item, .skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px;
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.school {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Skills Section */
#skills {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    padding-top: 0;
}

.skills-container {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.skill-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
}

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

.skill-tag a:hover {
    color: #007bff;
}

/* Experience Section */
.experience-container {
    display: grid;
    gap: 2rem;
}

.experience-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    scroll-margin-top: 6rem;
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location i {
    color: var(--secondary-color);
}

.period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.experience-tags .tag a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.experience-tags .tag a:hover {
    color: #007bff;
}

.experience-content {
    display: flex;
    gap: 2rem;
}

.experience-text {
    flex: 1;
}

.experience-photos {
    width: 300px;
    margin-right: 1rem;
}

.photo-container {
    position: relative;
    width: 300px;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-wrapper.active {
    opacity: 1;
}

.experience-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.photo-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem;
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-wrapper.active .photo-description {
    opacity: 1;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.photo-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.photo-nav.prev {
    left: 10px;
}

.photo-nav.next {
    right: 10px;
}

/* Ensure each photo container has its own navigation */
.photo-container .photo-nav {
    pointer-events: auto;
}

/* Disable navigation for other containers */
.experience-item:not(:hover) .photo-container .photo-nav {
    pointer-events: none;
}

/* Contact Section */
.contact-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

/* About Section */
.about-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    height: 100%;
}

.about-image img {
    max-width: 100%;
    height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--light-bg);
}

.social-link {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem;
    }

    .nav-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }

    .visitor-counter {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Education Section */
    .education-item {
        padding: 1.5rem;
    }

    /* Skills Section */
    .technical-skills {
        flex-direction: column;
        gap: 1.5rem;
    }

    .skill-divider {
        width: 100%;
        height: 1px;
        margin: 1rem 0;
    }

    .skill-column {
        width: 100%;
    }

    /* Experience Section */
    .experience-item {
        padding: 1.5rem;
    }

    .experience-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .experience-photos {
        width: 100%;
    }

    .photo-container {
        height: 250px;
    }

    .photo-description {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Contact Section */
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info {
        width: 100%;
    }

    /* Section Headers */
    .section-header {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* General Spacing */
    .section {
        padding: 2rem 1rem;
    }

    /* Experience Tags */
    .experience-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Video Section */
    .video-thumbnail {
        height: 200px;
    }

    .play-button {
        font-size: 0.9rem;
    }

    /* Social Links */
    .social-links {
        gap: 1rem;
    }

    .social-link {
        font-size: 1.2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem;
    }

    .experience-item h3 {
        font-size: 1.2rem;
    }

    .photo-container {
        height: 200px;
    }

    .photo-description {
        font-size: 0.7rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .navbar {
        position: relative;
    }

    .section {
        padding: 1rem;
    }

    .photo-container {
        height: 200px;
    }
}

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

.section {
    animation: fadeIn 0.5s ease-out;
}

.technical-skills {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    gap: 1rem;
    width: 100%;
}

.skill-column {
    flex: 1;
    padding: 0 1.5rem;
    min-width: 200px;
}

.skill-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.skill-divider {
    width: 2px;
    background-color: var(--secondary-color);
    align-self: stretch;
    margin: 0 1.5rem;
    opacity: 0.3;
    border-radius: 1px;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: none;
}

.skill-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    justify-content: center;
}

.skill-tag {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
}

@media (max-width: 768px) {
    .technical-skills {
        flex-direction: column;
        gap: 2rem;
    }

    .skill-divider {
        width: 100%;
        height: 2px;
        margin: 0.2rem 0;
        opacity: 0.3;
    }

    .skill-column {
        padding: 0;
        min-width: auto;
    }
}

.experience-video {
    width: 300px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-link {
    text-decoration: none;
    color: inherit;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.play-button i {
    font-size: 1.2rem;
}

.play-button span {
    font-size: 0.9rem;
    white-space: nowrap;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-thumbnail:hover .play-button {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .experience-video {
        width: 100%;
        margin-right: 0;
        margin-top: 1rem;
    }

    .video-thumbnail {
        height: 300px;
    }
}

.experience-location {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
}

.experience-location p {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-location i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .experience-location {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
    }
} 
