/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px;
}

/* Hero Section */
.hero {
    text-align: left;
    margin-bottom: 120px;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 33px;
    font-weight: 600;
    margin-bottom: 0;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1;
}

.subtitle {
    font-size: 33px;
    color: #999;
    font-weight: 500;
    max-width: 650px;
    line-height: 1;
}

/* Products Section */
.products {
    margin-bottom: 60px;
    position: relative;
}

.products h2 {
    font-size: 22px;
    font-weight: 500;
    color: #999;
    margin-bottom: 10px;
    text-align: left;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: #f5f5f5;
    border-radius: 35px;
    padding: 20px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-icon {
    width: 100px;
    height: 100px;
    margin-bottom: auto;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 24px;
    color: #000;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.product-card p {
    font-size: 25px;
    color: #999;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.product-link {
    font-size: 20px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover h3,
.product-card:hover p {
    transform: translateY(-30px);
}

.product-card:hover .product-link {
    opacity: 1;
    transform: translateY(0);
}

.product-link .arrow {
    transition: transform 0.2s ease;
}

.product-card:hover .arrow {
    transform: translateX(3px);
}

/* Placeholder icon for products without images */
.placeholder-icon {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Hidden products (initially) */
.hidden-product {
    display: none;
}

.products.expanded .hidden-product {
    display: flex;
}

/* See more button */
.see-more-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    color: #333;
}

.see-more-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.products.expanded .see-more-arrow {
    transform: rotate(180deg);
}

/* CV Sections Wrapper */
.cv-sections {
    margin-bottom: 100px;
}

/* Expandable Sections */
.section-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.section-toggle:hover {
    color: #666;
}

.toggle-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
    display: inline-block;
}

.section-content.expanded + section .section-toggle {
    border-top: none;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.section-content.expanded {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
}

/* Education Section */
.education {
    margin-bottom: 0;
}

.education h2 {
    font-size: 22px;
    font-weight: 500;
    color: #999;
    margin-bottom: 0;
}


.education-list {
    padding-top: 32px;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
    line-height: 1.2;
}

.education-item p {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
}

.education-item .date {
    color: #999;
    font-size: 16px;
}

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

.achievements li {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.achievements li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

.achievements-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-top: 20px;
    margin-bottom: 12px;
}

.achievements a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.achievements a:hover {
    opacity: 0.7;
}

.education-details {
    font-size: 18px;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.relevant-courses {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
    margin-left: 20px;
}

.relevant-courses strong {
    color: #333;
    font-weight: 600;
}

/* Experience Section */
.experience {
    margin-bottom: 0;
}

.experience h2 {
    font-size: 22px;
    font-weight: 500;
    color: #999;
    margin-bottom: 0;
}

.experience-list {
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.experience-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #000;
    line-height: 1.2;
}

.experience-item .date {
    font-size: 16px;
    color: #999;
    margin-bottom: 16px;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.experience-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 0;
}

.achievements-section h2 {
    font-size: 22px;
    font-weight: 500;
    color: #999;
    margin-bottom: 0;
}

.achievements-list {
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.achievement-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

/* Skills Section */
.skills {
    margin-bottom: 0;
}

.skills h2 {
    font-size: 22px;
    font-weight: 500;
    color: #999;
    margin-bottom: 0;
}

.skills-content {
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.skill-category p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Footer Section */
.footer {
    margin-top: 120px;
    padding: 60px 0;
    background: #f5f5f5;
    border-radius: 24px;
}

.footer p {
    font-size: 20px;
    line-height: 1.8;
    color: #999;
    font-weight: 500;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.footer-dark {
    color: #333;
}

.inline-icon-link {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.inline-icon-link:hover {
    opacity: 0.6;
}

.inline-icon-link:hover svg {
    transform: rotate(360deg);
}

.inline-icon-link svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 20px;
    }
    
    .hero {
        margin-bottom: 60px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 32px;
    }
    
    .products h2 {
        font-size: 18px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        min-height: 280px;
        padding: 20px;
    }
    
    .product-icon {
        width: 64px;
        height: 64px;
        margin-left: 0;
    }
    
    .product-card h3 {
        font-size: 20px;
        text-align: left;
    }
    
    .product-card p {
        font-size: 20px;
        text-align: left;
    }
    
    .product-link {
        font-size: 16px;
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .subtitle {
        font-size: 26px;
    }
    
    .product-card h3 {
        font-size: 18px;
        text-align: left;
    }
    
    .product-card p {
        font-size: 18px;
        text-align: left;
    }
}