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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e8e9ed;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #243447 100%);
    min-height: 100vh;
}

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

/* Header Section */
.header {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.profile-image {
    flex-shrink: 0;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d4af37;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.4);
}

.image-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2332;
    font-size: 60px;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease;
}

.image-placeholder:hover {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.title {
    font-size: 1.5rem;
    color: #b8c5d6;
    font-weight: 500;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #9aa5b8;
    font-weight: 300;
    max-width: 500px;
}

/* Work Skills Section */
.work-skills {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin: 40px 20px;
    border-radius: 20px;
    padding: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #d4af37, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.current-role h3,
.technical-skills h3 {
    font-size: 1.8rem;
    color: #e8e9ed;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-role h3 i,
.technical-skills h3 i {
    color: #d4af37;
    font-size: 1.5rem;
}

.job-card {
    background: linear-gradient(135deg, rgba(36, 52, 71, 0.8), rgba(26, 35, 50, 0.8));
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 5px solid #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.job-card h4 {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.company {
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 500;
    margin-bottom: 5px;
}

.duration {
    color: #b8c5d6;
    margin-bottom: 20px;
    font-style: italic;
}

.achievements {
    list-style: none;
}

.achievements li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #e8e9ed;
    line-height: 1.6;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.skill-category {
    background: rgba(36, 52, 71, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.3);
}

.skill-category h4 {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #1a2332;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Social Media Section */
.social-media {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin: 40px 20px;
    border-radius: 20px;
    padding: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    text-decoration: none;
    color: #1a2332;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d4af37, #ffd700, #ffed4e);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.social-btn:hover::before {
    transform: translateX(100%);
}

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.social-btn i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.social-btn:hover i {
    transform: scale(1.2);
}

.telegram {
    background: linear-gradient(135deg, #d4af37, #ffd700);
}

.email {
    background: linear-gradient(135deg, #d4af37, #ffed4e);
}

.github {
    background: linear-gradient(135deg, #d4af37, #ffd700);
}

.linkedin {
    background: linear-gradient(135deg, #d4af37, #ffed4e);
}

/* TIL Section */
.til-section {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin: 40px 20px;
    border-radius: 20px;
    padding: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.til-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.til-section .section-title i {
    color: #ffd700;
    font-size: 2rem;
}

.til-content {
    max-width: 800px;
    margin: 0 auto;
}

.loading-spinner {
    text-align: center;
    color: #d4af37;
    padding: 40px;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.til-items {
    display: none;
}

.til-item {
    background: rgba(36, 52, 71, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #d4af37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.til-item:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.3);
}

.til-item h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.til-item .date {
    color: #b8c5d6;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.til-item p {
    color: #e8e9ed;
    line-height: 1.6;
}

.error-message {
    text-align: center;
    color: #ff6b6b;
    padding: 40px;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-message a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

.error-message a:hover {
    text-decoration: underline;
}

/* Footer Section */
.footer {
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #e8e9ed;
    margin: 40px 20px 0;
    border-radius: 20px 20px 0 0;
    padding: 60px 0 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #b8c5d6;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: #b8c5d6;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.footer-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #d4af37;
}

.footer-section i {
    color: #d4af37;
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 30px;
    text-align: center;
    color: #9aa5b8;
}

.footer-bottom p:first-child {
    font-weight: 500;
    margin-bottom: 5px;
    color: #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header-content {
        text-align: center;
        flex-direction: column;
    }
    
    .social-buttons {
        gap: 20px;
    }
    
    .social-btn {
        width: 100px;
        height: 100px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0;
    }
    
    .work-skills,
    .social-media,
    .til-section {
        margin: 20px 10px;
        padding: 40px 0;
    }
    
    .footer {
        margin: 20px 10px 0;
    }
    
    .name {
        font-size: 1.8rem;
    }
}
