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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.6s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

.btn {
    display: inline-block;
    background-color: white;
    color: #667eea;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Quick Intro Cards */
.quick-intro {
    padding: 4rem 2rem;
    background-color: white;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.card a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #764ba2;
}

/* Content Pages */
.content {
    background-color: white;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.content h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* About Image */
.about-image {
    text-align: center;
    margin-bottom: 2rem;
}

.about-image img {
    width: 400px;
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    image-rendering: auto;
}

@media (min-width: 1200px) {
    .about-image img {
        width: 500px;
    }
}

@media (max-width: 480px) {
    .about-image img {
        width: 85%;
    }
}

/* Job Image */
.job-image {
    text-align: center;
    margin-bottom: 2rem;
}

 .job-image img {
    width: 100%;
    max-width: 700px;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
 }

@media (max-width: 768px) {
    .job-image img {
        height: 240px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .job-image img {
        height: 180px;
    }
}

/* Hobbies Gallery */
.hobbies-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

 .gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
 }

@media (max-width: 768px) {
    .gallery-item img {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 220px;
    }
}

/* Smaller variant for specific gallery images */
.gallery-item img.small-thumb {
    height: 240px;
    max-width: 85%;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .gallery-item img.small-thumb {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-item img.small-thumb {
        height: 160px;
    }
}

.about-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 5px;
}

.about-section h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.about-section li {
    margin: 0.5rem 0;
    color: #555;
}

/* Skills */
.skills {
    margin-top: 2rem;
}

.skill-item {
    margin: 1.5rem 0;
}

.skill-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.skill-bar {
    background-color: #ddd;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Job Experience */
.experience {
    margin-top: 2rem;
}

/* Grid layout for Job page: image + content */
.job-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.job-grid .job-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.job-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.job-image .bottom-thumb img {
    width: 260px;
    max-width: 95%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    display: inline-block;
}

@media (max-width: 900px) {
    .job-grid {
        grid-template-columns: 1fr;
    }

    .job-grid .job-image {
        margin-bottom: 1rem;
        align-items: center;
    }

    .job-image .bottom-thumb img {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .job-image .bottom-thumb img {
        width: 180px;
    }
}

/* Bottom image for job page */
.job-bottom-image {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.job-bottom-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    display: inline-block;
}

@media (max-width: 768px) {
    .job-bottom-image img {
        max-width: 95%;
    }
}

.job-item {
    background-color: #f9f9f9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.job-item h2 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.job-item h3 {
    color: #764ba2;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.job-item .date {
    color: #999;
    font-style: italic;
    margin-bottom: 1rem;
}

.job-item ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.job-item li {
    margin: 0.5rem 0;
    color: #555;
}

/* Hobbies */
.hobbies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hobby-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-5px);
}

.hobby-item h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.hobby-item p {
    color: #555;
    line-height: 1.8;
}

/* Navigation Links */
.nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.nav-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #764ba2;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links a {
        text-align: center;
    }
}
