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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

nav {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    border-bottom: 2px solid #3498db;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.post-card h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.post-card h3 a:hover {
    color: #3498db;
}

.post-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

.post-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-content h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.post-content .meta {
    color: #999;
    margin-bottom: 2rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    height: 150px;
    resize: vertical;
}

button {
    background-color: #3498db;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.about-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.about-intro {
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.articles-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.articles-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.articles-intro {
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
    border-radius: 8px;
}

.about-card h2 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.about-card p {
    color: #555;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.experience-item {
    margin-bottom: 1rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.exp-date {
    color: #999;
    font-size: 0.85rem;
}

.experience-item h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin: 0.25rem 0;
}

.exp-company {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #555;
}

.about-motto {
    font-style: italic;
    color: #3498db !important;
    margin-top: 0.75rem;
}
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-bio {
    color: #555;
    line-height: 1.8;
}

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

.skill-category {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.skill-category h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3498db;
    transform: translateX(3px);
}

.timeline-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-content h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #555;
    font-size: 0.95rem;
}

/* Interests Section */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.interest-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.interest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.interest-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.interest-card h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.interest-card p {
    color: #777;
    font-size: 0.85rem;
}

/* Social Section */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.social-link:hover {
    background: #3498db;
    color: white;
}

/* Blog Section */
.blog-section p {
    margin-bottom: 1rem;
    color: #555;
}

.blog-motto {
    font-style: italic;
    color: #3498db !important;
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #3498db;
    text-decoration: none;
}

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

.lang-switcher {
    position: relative;
}

.lang-current {
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.lang-current:hover {
    background: rgba(255,255,255,0.1);
}

.lang-text {
    min-width: 40px;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.lang-switcher:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2c3e50;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    min-width: 100px;
    z-index: 100;
    margin-top: 0.3rem;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
}

.lang-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s;
}

.lang-dropdown a:hover {
    background: rgba(255,255,255,0.1);
}

.lang-dropdown a.active {
    color: #3498db;
}

/* Portfolio Page */
.portfolio-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portfolio-content h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.portfolio-intro {
    color: #3498db;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.portfolio-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-image {
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.card-image.project-1 { background: linear-gradient(135deg, #3498db, #2c3e50); }
.card-image.project-2 { background: linear-gradient(135deg, #1abc9c, #16a085); }
.card-image.project-3 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.card-image.project-4 { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.card-image.project-5 { background: linear-gradient(135deg, #f39c12, #e67e22); }
.card-image.project-6 { background: linear-gradient(135deg, #34495e, #2c3e50); }

.card-body {
    padding: 1.25rem;
}

.card-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-body h3 {
    color: #2c3e50;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.card-tech span {
    background: #f0f4f8;
    color: #555;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.card-links {
    display: flex;
    gap: 1rem;
}

.card-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* Contact Page */
.contact-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-content > h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-intro {
    color: #3498db;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
}

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

.contact-info h2,
.contact-form-wrapper h2 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-detail h3 {
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.info-detail p {
    color: #666;
    font-size: 0.9rem;
}

.info-detail a {
    color: #3498db;
    text-decoration: none;
}

.info-detail a:hover {
    text-decoration: underline;
}

.info-detail .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-detail .social-links a {
    background: #f0f4f8;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.info-detail .social-links a:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

/* Contact Form */
.contact-form {
    margin-top: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: #2980b9;
}

/* Contact Footer */
.contact-footer {
    margin-top: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.contact-footer p {
    color: #555;
    font-size: 0.95rem;
}

.contact-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.contact-footer a:hover {
    text-decoration: underline;
}

/* Home Page Cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .home-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}

.home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    z-index: 0;
    transition: opacity 0.3s;
}

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

.home-card:hover::before {
    opacity: 1;
}

/* Card gradient backgrounds */
.home-card:nth-child(1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.home-card:nth-child(2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.home-card:nth-child(3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.home-card:nth-child(4)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.home-card > * {
    position: relative;
    z-index: 1;
}

.home-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.home-card h2 {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.home-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.home-card .card-arrow {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.home-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* View All Link */
.view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.view-all a {
    color: #3498db;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all a:hover {
    color: #2980b9;
}
