/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.code-icon {
    font-size: 60px;
    color: #667eea;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

.loading-text {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 20px;
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes pulse-loading {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    bottom: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mouse Trail */
.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    pointer-events: none;
    animation: trail-fade 1s ease-out forwards;
    z-index: 9998;
}

@keyframes trail-fade {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

/* Container */
.container {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 80px rgba(102, 126, 234, 0.3);
    min-height: 100vh;
    position: relative;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sidebar Styles */
.sidebar {
    width: 400px;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    padding: 40px 30px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-section {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5), 0 0 40px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 80px rgba(102, 126, 234, 0.5); }
}

.rotating-border {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image i {
    font-size: 70px;
    color: #fff;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    min-height: 40px;
}

.cursor {
    animation: blink 0.8s infinite;
    color: #667eea;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.title {
    font-size: 1rem;
    color: #a0aec0;
    font-weight: 400;
}

.slide-in-text {
    animation: slideInUp 0.8s ease-out 2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(72, 187, 120, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 15px;
    animation: fadeIn 1s ease-out 2.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Fade In Section Animation */
.fade-in-section {
    animation: fadeInSection 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-section:nth-child(2) { animation-delay: 0.5s; }
.fade-in-section:nth-child(3) { animation-delay: 0.7s; }
.fade-in-section:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.sidebar h2 i {
    font-size: 1.1rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.sidebar h3 {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.contact-section ul {
    list-style: none;
}

.contact-section li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.hover-slide {
    cursor: pointer;
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 8px;
}

.hover-slide:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(10px);
}

.hover-slide:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.contact-section li i {
    width: 20px;
    color: #667eea;
    transition: all 0.3s ease;
}

.contact-section a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-section a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Skills Section */
.skills-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.skill-item {
    margin-bottom: 18px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-header span {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.skill-percent {
    color: #667eea !important;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Languages Section */
.languages-section {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.languages-section ul {
    list-style: none;
}

.languages-section li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.9rem;
}

.languages-section .level {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    to { box-shadow: 0 0 15px rgba(102, 126, 234, 0.8); }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px) rotate(360deg);
}

.float-animation {
    animation: floatIcon 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.main-content section {
    margin-bottom: 50px;
}

.main-content h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(90deg, #667eea, #764ba2) padding-box,
                linear-gradient(90deg, #667eea, #764ba2) border-box;
    background-clip: padding-box, border-box;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.main-content h2 i {
    color: #667eea;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Reveal Animation */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Summary Section */
.summary-card {
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.1);
}

.summary-section p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.9;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.highlight-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: #fff;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number .year-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-detail {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    margin-top: 5px;
}

.stat-detail .detail-months,
.stat-detail .detail-days {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experience-stat .stat-label {
    margin-top: 10px;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-dot.pulse {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px #667eea, 0 0 0 6px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 0 5px #667eea, 0 0 0 12px rgba(102, 126, 234, 0.1); }
}

/* Experience Card */
.experience-card {
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid #667eea;
    margin-left: 10px;
}

.experience-card:hover {
    transform: translateX(10px) scale(1.01);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.experience-header h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.company {
    color: #667eea;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location {
    color: #718096;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shimmerBadge 3s ease-in-out infinite;
}

@keyframes shimmerBadge {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.5); }
}

.responsibilities {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #4a5568;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.responsibilities li:hover {
    color: #1a1a2e;
    transform: translateX(5px);
}

.responsibilities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
}

.responsibilities li:hover::before {
    color: #764ba2;
    transform: scale(1.2);
}

/* Education Section */
.education-card {
    display: flex;
    gap: 25px;
    padding: 30px;
    border-radius: 20px;
    align-items: center;
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
    animation: rotateIcon 10s linear infinite;
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.education-content {
    flex: 1;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.education-header h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.institution {
    color: #764ba2;
    font-weight: 500;
}

.gpa-badge {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
}

.gpa-label {
    color: #667eea;
    font-weight: 600;
}

.gpa-value {
    color: #1a1a2e;
    font-weight: 600;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cert-item {
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.cert-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    transition: all 0.5s ease;
}

.cert-item:hover .cert-icon-wrapper {
    transform: rotateY(360deg);
}

.cert-item h4 {
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cert-item p {
    color: #718096;
    font-size: 0.9rem;
}

.cert-year {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.cert-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.project-card {
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-status.released {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.project-status.new {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    animation: pulse-status 2s ease-in-out infinite;
}

.project-status.soon {
    background: rgba(237, 137, 54, 0.15);
    color: #ed8936;
}

@keyframes pulse-status {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    width: 35px;
    height: 35px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: rotate(360deg);
}

.project-card h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.project-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.project-stats span {
    color: #667eea;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Download Button */
.download-section {
    text-align: center;
    padding: 40px 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.download-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: #a0aec0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

footer p {
    font-size: 0.9rem;
}

.beat {
    color: #e53e3e;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.back-to-top i {
    animation: upDown 1s ease-in-out infinite;
}

@keyframes upDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
    }
    
    .date {
        align-self: flex-start;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content h2 {
        font-size: 1.2rem;
    }
    
    .name {
        font-size: 1.4rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .education-card {
        flex-direction: column;
        text-align: center;
    }
    
    .education-header {
        flex-direction: column;
        align-items: center;
    }
    
    .gpa-badge {
        margin: 15px auto 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-image i {
        font-size: 50px;
    }
    
    .rotating-border {
        width: 140px;
        height: 140px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -28px;
        width: 12px;
        height: 12px;
    }
}

/* Printing class for JavaScript control */
body.printing {
    overflow: visible !important;
}

body.printing .container {
    box-shadow: none !important;
}

body.printing .skill-progress {
    transition: none !important;
    animation: none !important;
}

body.printing .reveal-section {
    opacity: 1 !important;
    transform: none !important;
}

/* Print Styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    html, body {
        width: 210mm;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        font-size: 10px !important;
    }
    
    .container {
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        min-height: auto !important;
        border-radius: 0 !important;
    }
    
    .sidebar {
        width: 32% !important;
        min-width: 32% !important;
        max-width: 32% !important;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%) !important;
        padding: 15px 12px !important;
        page-break-inside: avoid !important;
    }
    
    .sidebar::before {
        display: none !important;
    }
    
    .main-content {
        width: 68% !important;
        padding: 15px 18px !important;
        background: #f8fafc !important;
    }
    
    /* Hide non-essential elements */
    .bg-animation,
    .loading-screen,
    .back-to-top,
    .download-section,
    .social-links,
    .cursor,
    .trail-dot,
    .rotating-border,
    .status-badge,
    footer {
        display: none !important;
    }
    
    /* ==================== SIDEBAR STYLES ==================== */
    
    /* Profile Section */
    .profile-section {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .profile-image {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 8px !important;
        box-shadow: none !important;
        animation: none !important;
    }
    
    .profile-image i {
        font-size: 40px !important;
        animation: none !important;
    }
    
    .name {
        font-size: 1rem !important;
        min-height: auto !important;
        margin-bottom: 4px !important;
    }
    
    .typing-text::after {
        display: none !important;
    }
    
    .title {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
    }
    
    /* Section Headers - Sidebar */
    .sidebar h2 {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }
    
    .sidebar h2 i {
        animation: none !important;
        font-size: 0.7rem !important;
    }
    
    .sidebar h3 {
        font-size: 0.65rem !important;
        margin: 8px 0 6px !important;
    }
    
    /* Contact Section */
    .contact-section {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .contact-section li {
        font-size: 0.65rem !important;
        margin-bottom: 5px !important;
        padding: 0 !important;
    }
    
    .contact-section li i {
        width: 14px !important;
        font-size: 0.6rem !important;
    }
    
    .contact-section a {
        color: #e2e8f0 !important;
        text-decoration: none !important;
    }
    
    /* Skills Section */
    .skills-section {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .skill-item {
        margin-bottom: 6px !important;
    }
    
    .skill-header {
        margin-bottom: 3px !important;
    }
    
    .skill-header span {
        font-size: 0.6rem !important;
    }
    
    .skill-bar {
        height: 4px !important;
        border-radius: 2px !important;
    }
    
    .skill-progress {
        animation: none !important;
        transition: none !important;
        border-radius: 2px !important;
    }
    
    .skill-progress::after {
        display: none !important;
    }
    
    .skill-progress[data-width="95"] { width: 95% !important; }
    .skill-progress[data-width="90"] { width: 90% !important; }
    .skill-progress[data-width="88"] { width: 88% !important; }
    .skill-progress[data-width="85"] { width: 85% !important; }
    .skill-progress[data-width="82"] { width: 82% !important; }
    .skill-progress[data-width="80"] { width: 80% !important; }
    
    /* Languages Section */
    .languages-section {
        margin-bottom: 0 !important;
    }
    
    .languages-section li {
        padding: 4px 0 !important;
        font-size: 0.65rem !important;
    }
    
    .languages-section .level {
        padding: 2px 6px !important;
        font-size: 0.55rem !important;
        animation: none !important;
    }
    
    /* ==================== MAIN CONTENT STYLES ==================== */
    
    .main-content section {
        margin-bottom: 14px !important;
        page-break-inside: avoid !important;
    }
    
    .reveal-section {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .main-content h2 {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
    }
    
    .main-content h2 i {
        animation: none !important;
        font-size: 0.8rem !important;
    }
    
    /* Summary Section */
    .summary-card {
        padding: 12px !important;
        border-radius: 6px !important;
    }
    
    .quote-icon {
        font-size: 1.2rem !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    .summary-section p {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        padding-left: 20px !important;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .stat-item {
        padding: 10px 6px !important;
        border-radius: 6px !important;
    }
    
    .stat-item::before {
        display: none !important;
    }
    
    .stat-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
        animation: none !important;
    }
    
    .stat-number {
        font-size: 1rem !important;
    }
    
    .stat-number .year-text {
        font-size: 0.6rem !important;
    }
    
    .stat-detail {
        font-size: 0.55rem !important;
        margin-top: 2px !important;
    }
    
    .stat-label {
        font-size: 0.55rem !important;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 15px !important;
    }
    
    .timeline::before {
        width: 2px !important;
        left: 3px !important;
    }
    
    .timeline-item {
        margin-bottom: 12px !important;
        page-break-inside: avoid !important;
    }
    
    .timeline-dot {
        width: 8px !important;
        height: 8px !important;
        left: -18px !important;
        top: 16px !important;
        animation: none !important;
    }
    
    /* Experience Card */
    .experience-card {
        padding: 10px 12px !important;
        border-radius: 6px !important;
        margin-left: 3px !important;
        border-left-width: 2px !important;
    }
    
    .experience-header {
        margin-bottom: 8px !important;
        flex-wrap: wrap !important;
    }
    
    .experience-header h3 {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
    }
    
    .company {
        font-size: 0.65rem !important;
    }
    
    .location {
        font-size: 0.6rem !important;
    }
    
    .date {
        padding: 3px 8px !important;
        font-size: 0.55rem !important;
        border-radius: 10px !important;
        animation: none !important;
    }
    
    .responsibilities {
        margin-top: 6px !important;
    }
    
    .responsibilities li {
        font-size: 0.65rem !important;
        margin-bottom: 3px !important;
        padding-left: 12px !important;
        line-height: 1.3 !important;
    }
    
    .responsibilities li::before {
        font-size: 0.6rem !important;
    }
    
    /* Education Card */
    .education-card {
        padding: 12px !important;
        border-radius: 6px !important;
    }
    
    .education-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        animation: none !important;
    }
    
    .education-header h3 {
        font-size: 0.7rem !important;
    }
    
    .institution {
        font-size: 0.65rem !important;
    }
    
    .education-card .date {
        font-size: 0.55rem !important;
    }
    
    .gpa-badge {
        padding: 4px 10px !important;
        margin-top: 6px !important;
        font-size: 0.6rem !important;
    }
    
    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .project-card {
        padding: 10px !important;
        border-radius: 6px !important;
        page-break-inside: avoid !important;
    }
    
    .project-card::before {
        display: none !important;
    }
    
    .project-header {
        margin-bottom: 6px !important;
    }
    
    .project-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
    }
    
    .project-status {
        padding: 2px 6px !important;
        font-size: 0.5rem !important;
        animation: none !important;
    }
    
    .project-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }
    
    .project-card p {
        font-size: 0.6rem !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
    }
    
    .tech-tags {
        gap: 3px !important;
        flex-wrap: wrap !important;
    }
    
    .tech-tags span {
        padding: 2px 6px !important;
        font-size: 0.5rem !important;
        border-radius: 8px !important;
    }
    
    /* Glass effect reset for print */
    .glass-effect {
        box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    /* Remove all animations */
    .pulse-glow,
    .rotating-border,
    .project-status {
        animation: none !important;
    }
    
    /* Page settings */
    @page {
        size: A4 portrait;
        margin: 5mm;
    }
    
    @page :first {
        margin-top: 5mm;
    }
}
