body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    margin: 0 auto;
    padding: 60px 20%;
    max-width: 1200px;
}

h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.profile-image {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
}

.contact-info {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

.nav-links {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-links a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px 10px;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    color: #0066cc;
    text-decoration: none;
    padding: 5px 10px;
    margin: 0 10px;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0; 
    padding-top: 5px; 
    border: 1px solid #ddd;
    top: 100%;
    left: 0;
}

.nav-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
    transition: background-color 0.2s ease;
}

.nav-dropdown-content a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.profile-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.profile-text {
    flex: 1;
}

.profile-text h2 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
}

.profile-text p {
    margin-bottom: 15px;
    text-align: justify;
}

h2 {
    font-size: 28px;
    margin: 40px 0 25px 0;
    font-weight: 600;
    color: #222;
}

.item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 35px;
    border-bottom: 1px solid #eee;
}

.item:last-child {
    border-bottom: none;
}

.item-images {
    width: 500px;
    flex-shrink: 0;
}

.item-logo {
    display: none;
}

.item-hook {
    width: 100%;
    height: 320px;
    background-color: #f0f0f0;
    border: 2px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.item-hook:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #0066cc;
}

.item-hook img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-spacer {
    width: 150px;
    height: 260px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.item-header-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.item-header-logo {
    width: 60px;
    height: 60px;
    background-color: #f8f8f8;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.item-title-group {
    flex: 1;
}

.item-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.item-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.item-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.details-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.details-link:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.item-description {
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.item-description ul {
    margin: 12px 0;
    padding-left: 20px;
}

.item-description li {
    margin-bottom: 8px;
}

.education-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.education-item {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.education-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.education-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.education-school {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.education-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.education-description {
    font-size: 14px;
    line-height: 1.5;
}

.skills-section {
    background-color: #f9f9f9;
    padding: 25px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
    border-radius: 6px;
}

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

.skill-category h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.skill-category p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.contact-section {
    text-align: center;
    margin-top: 50px;
    padding: 25px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.contact-links a {
    color: #0066cc;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-links a:hover {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.footer-text {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.back-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.hero-section {
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
}

.hero-date {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
    text-align: center;
}

.hero-summary {
    font-size: 18px;
    line-height: 1.7;
    color: #444;
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #0066cc;
    margin-bottom: 20px;
    border-radius: 4px;
}

.hero-image {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.text-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.text-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #333;
}

.text-content ul, .text-content ol {
    padding-left: 25px;
    margin: 15px 0;
}

.text-content li {
    margin-bottom: 8px;
}

.single-image {
    width: 100%;
    margin: 30px 0;
}

.single-image img, .single-image video, .single-image .placeholder {
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.single-image img, .single-image video {
    object-fit: contain;
    display: block;
}

.single-image .caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.double-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.double-image .image-item {
    text-align: center;
}

.double-image img, .double-image .placeholder {
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.double-image img {
    display: block;
}

.double-image .caption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Fixed height double-image for matching sizes */
.double-image-fixed img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: transparent;
    border: none;
}

.text-with-image {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin: 30px 0;
    align-items: start;
}

.text-with-image.image-left {
    grid-template-columns: 400px 1fr;
}

.text-with-image .image-container img,
.text-with-image .image-container .placeholder {
    width: 100%;
    height: 300px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
}

.text-with-image .image-container img {
    object-fit: cover;
}

.text-with-image .caption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery .gallery-item {
    text-align: center;
}

.gallery img, .gallery .placeholder {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

.gallery img {
    object-fit: cover;
}

.gallery img:hover, .gallery .placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery .caption {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.highlight-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0066cc;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.highlight-box.warning {
    border-left-color: #ffc107;
    background-color: #fff9e6;
}

.highlight-box.success {
    border-left-color: #28a745;
    background-color: #f0fff4;
}

.quote-block {
    border-left: 4px solid #ccc;
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #f9f9f9;
    font-style: italic;
    font-size: 16px;
    border-radius: 4px;
}

.quote-block .quote-author {
    font-style: normal;
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tech-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: #0066cc;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 10%;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .item {
        flex-direction: column;
    }
    
    .item-images {
        width: 100%;
    }
    
    .item-hook {
        height: 250px;
    }
    
    .item-spacer {
        display: none;
    }
    
    .item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-header-left {
        width: 100%;
    }
    
    .details-link {
        align-self: flex-start;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 26px;
    }
    
    .hero-image {
        height: 250px;
    }

    .double-image {
        grid-template-columns: 1fr;
    }

    .text-with-image {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .text-with-image.image-left {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .single-image img, .single-image .placeholder {
        height: 200px;
    }
}