/* World-Class Portfolio Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #1e1e28;
    --bg-darker: #16161e;
    --bg-card: #28293d;
    --accent: #ffb800;
    --accent-hover: #ffa500;
    --text-primary: #ffffff;
    --text-secondary: #a9adc1;
    --border: #2a2a3d;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    scroll-behavior: smooth;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e1e28 0%, #2d1b3d 50%, #1e1e28 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--bg-darker);
    padding: 40px 30px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    margin-bottom: 20px;    transition: all 0.4s ease;
    box-shadow: 0 0 30px rgba(255, 184, 0, 0.3);
}

.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 50px rgba(255, 184, 0, 0.6);}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.sidebar-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.sidebar-section:last-of-type {
    border-bottom: none;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.section-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-bar {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.skill-info span:first-child {
    color: var(--text-secondary);
}

.skill-info span:last-child {
    color: var(--accent);
    font-weight: 600;
}

.skill-progress {
    height: 5px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 184, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 184, 0, 0.8); }
}

.sidebar-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg-darker);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.4);
}

/* Main Content */
.main-content {
    margin-left: 300px;
    flex: 1;
    padding: 60px 80px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 80px;
}

.hero-content {
    margin-bottom: 50px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-highlight {
    color: var(--accent);
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.8;
}

.code-tag {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.certifications-section,
.experience-section,
.contact-section {
    margin-bottom: 80px;
}

.main-section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.cert-card:hover::before {
    left: 100%;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 184, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cert-icon {
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.cert-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.cert-link-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Experience Timeline */
.experience-timeline {
    max-width: 800px;
}

.timeline-item {
    position: relative;
    padding-left: 200px;
    padding-bottom: 50px;
    border-left: 2px solid var(--border);
    margin-left: 150px;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-date {
    position: absolute;
    left: -150px;
    top: 0;
    width: 140px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Contact Section */
.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.linkedin-btn {
    background: #0077b5;
    color: white;
}

.linkedin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
}

.facebook-btn {
    background: #1877f2;
    color: white;
}

.facebook-btn:hover {
    background: #0c63d4;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .main-content {
        margin-left: 0;
        padding: 40px 24px;
    }
    
    body {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 30px;
        margin-left: 0;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        justify-content: center;
    }
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}
/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section, .certifications-section, .experience-section, .contact-section {
    animation: fadeInUp 0.8s ease-out;
}

.cert-card, .stat-card, .timeline-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.cert-card:nth-child(1) { animation-delay: 0.1s; }
.cert-card:nth-child(2) { animation-delay: 0.2s; }
.cert-card:nth-child(3) { animation-delay: 0.3s; }
.cert-card:nth-child(4) { animation-delay: 0.4s; }
.cert-card:nth-child(5) { animation-delay: 0.5s; }
.cert-card:nth-child(6) { animation-delay: 0.6s; }
.cert-card:nth-child(7) { animation-delay: 0.7s; }
.cert-card:nth-child(8) { animation-delay: 0.8s; }

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--bg-darker);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 184, 0, 0.4);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.6);
}