html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #F0F4F2 0%, #EDE6CB 100%);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #202F4B, #3A5779);
    color: white;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(32, 47, 75, 0.15);
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(98, 211, 214, 0.1);
    border-radius: 10px;
    margin: 10px 0;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    border-radius: 10px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #62D3D6, #50BA9B);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Firefox scrollbar */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #50BA9B rgba(98, 211, 214, 0.1);
}

.nav-header {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.profile-img img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #62D3D6;
    object-fit: cover;
}

.nav-header h2 {
    color: #F0F4F2;
    margin: 0.5rem 0 0.2rem 0;
    font-size: 1.2rem;
}

.nav-header p {
    color: #EDE6CB;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.nav-social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nav-social-links a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F0F4F2;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(80, 186, 155, 0.2);
    border: 2px solid rgba(98, 211, 214, 0.3);
    font-size: 0.8rem;
}

.nav-social-links a:hover {
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 186, 155, 0.3);
}

.nav-menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    color: #F0F4F2;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-menu a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.nav-menu a:hover {
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    transform: translateX(3px);
}

.nav-menu a.active {
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
}

.content {
    margin-left: 260px;
    padding: 2rem;
    flex: 1;
    min-height: 100vh;
    width: calc(100% - 260px);
    max-width: calc(100vw - 260px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.section {
    margin-bottom: 3rem;
    background: rgba(240, 244, 242, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(32, 47, 75, 0.1);
    border: 1px solid rgba(98, 211, 214, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section h1 {
    font-weight: 700;
    color: #202F4B;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
}

.section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #50BA9B, #62D3D6);
    border-radius: 2px;
}

/* Navigation and Sidebar */
.nav-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nav-header h2 {
    color: #F0F4F2;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
}

.nav-header p {
    color: #EDE6CB;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.nav-social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.nav-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F0F4F2;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(80, 186, 155, 0.2);
    border: 2px solid rgba(98, 211, 214, 0.3);
}

.nav-social-links a:hover {
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 186, 155, 0.3);
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.5rem;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #F0F4F2;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-menu a.active {
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
}

/* Skills Section */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    color: #202F4B;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(32, 47, 75, 0.08);
    border: 1px solid rgba(98, 211, 214, 0.3);
    transition: all 0.3s ease;
}

.skill-bar:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(32, 47, 75, 0.15);
    border-color: #62D3D6;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-info span:first-child {
    font-weight: 600;
    color: #202F4B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-info span:first-child i {
    color: #50BA9B;
    font-size: 1.2rem;
}

.skill-info span:last-child {
    font-weight: 600;
    color: #3A5779;
    font-size: 0.9rem;
}

.skill-progress {
    height: 10px;
    background: rgba(237, 230, 203, 0.5);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #50BA9B, #62D3D6);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-in-out;
    position: relative;
    box-shadow: 0 2px 8px rgba(80, 186, 155, 0.3);
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: #3A5779;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item p {
    color: #202F4B;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.project-content {
    padding: 2rem;
}

.project-content p {
    color: #3A5779;
    margin: 1rem 0;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #202F4B, #3A5779);
    color: white;
    box-shadow: 0 4px 15px rgba(32, 47, 75, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3A5779, #202F4B);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 47, 75, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #202F4B;
    border: 2px solid #202F4B;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #202F4B, #3A5779);
    color: white;
    transform: translateY(-2px);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    /*background: linear-gradient(180deg, #50BA9B, #62D3D6);*/
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #50BA9B;
    box-shadow: 0 0 0 4px rgba(80, 186, 155, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3A5779;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #202F4B;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #50BA9B;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content p {
    color: #3A5779;
    margin-bottom: 1rem;
}

.timeline-content ul {
    color: #3A5779;
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #50BA9B;
}

.contact-item h3 {
    color: #202F4B;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #3A5779;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #202F4B, #3A5779);
    box-shadow: 0 4px 15px rgba(32, 47, 75, 0.3);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, #3A5779, #202F4B);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(32, 47, 75, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #EDE6CB;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }
    
    .nav-menu {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        flex: 1;
        min-width: 120px;
    }
    
    .nav-menu a {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-menu a i {
        margin-bottom: 0.2rem;
        margin-right: 0;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .services-grid,
    .testimonials-slider,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-menu a {
        font-size: 0.7rem;
        padding: 0.3rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .section h1 {
        font-size: 1.5rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .project-tech,
    .blog-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(32, 47, 75, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #202F4B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #3A5779;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: #3A5779;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #50BA9B;
    font-weight: bold;
}

/* Education Section */
.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    /*background: linear-gradient(180deg, #50BA9B, #62D3D6);*/
}

.education-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.education-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #50BA9B;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #50BA9B;
}

.education-date {
    color: #50BA9B;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-content h3 {
    color: #202F4B;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-content h4 {
    color: #3A5779;
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.education-highlights span {
    background: rgba(80, 186, 155, 0.1);
    color: #50BA9B;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 47, 75, 0.15);
}

.cert-logo {
    font-size: 3rem;
    color: #50BA9B;
    margin-bottom: 1rem;
}

.cert-card h3 {
    color: #202F4B;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cert-card p {
    color: #3A5779;
    margin-bottom: 1rem;
}

.cert-date {
    color: #50BA9B;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-verify {
    color: #202F4B;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #202F4B;
    transition: all 0.3s ease;
}

.cert-verify:hover {
    color: #50BA9B;
    border-color: #50BA9B;
}

/* Testimonials Section */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 47, 75, 0.15);
}

.testimonial-content p {
    color: #3A5779;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: #202F4B;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #3A5779;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 47, 75, 0.15);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-date {
    color: #3A5779;
    font-size: 0.9rem;
}

.blog-category {
    background: rgba(80, 186, 155, 0.1);
    color: #50BA9B;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card h3 {
    color: #202F4B;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.blog-card p {
    color: #3A5779;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    color: #50BA9B;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #202F4B;
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.process-step {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 47, 75, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.step-content h3 {
    color: #202F4B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step-content p {
    color: #3A5779;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-content ul {
    list-style: none;
}

.step-content li {
    color: #3A5779;
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.step-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #50BA9B;
    font-weight: bold;
}

/* Tools Section Base Styles */
.tools-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin: 10px;
}

.tool-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 47, 75, 0.1);
    border-color: #50BA9B;
}

.tool-item i {
    font-size: 2rem;
    color: #50BA9B;
    margin-bottom: 0.5rem;
}

.tool-item span {
    color: #202F4B;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Tools Section Mobile Responsive */
@media (max-width: 768px) {
    .tools-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tool-item {
        padding: 1rem;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .tool-item i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .tool-item span {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .tool-item {
        padding: 0.8rem;
        min-height: 70px;
    }
    
    .tool-item i {
        font-size: 1.3rem;
    }
    
    .tool-item span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .tool-category h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 47, 75, 0.15);
}

.achievement-icon {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: #202F4B;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.achievement-card p {
    color: #3A5779;
    margin-bottom: 0.5rem;
}

.achievement-year {
    color: #50BA9B;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.achievement-desc {
    color: #3A5779;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Hobbies Section */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hobby-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 211, 214, 0.3);
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(32, 47, 75, 0.15);
}

.hobby-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hobby-content {
    padding: 1.5rem;
}

.hobby-content h3 {
    color: #202F4B;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hobby-content p {
    color: #3A5779;
    line-height: 1.6;
}

/* Resume Download */
.resume-download {
    margin: 2rem 0;
}

/* Mobile-first approach - hide sidebar by default on mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 80px; /* Space for mobile header */
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Mobile header with hamburger menu */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #202F4B, #3A5779);
        color: white;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 999;
    }
    
    .mobile-header h2 {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .hamburger {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .hamburger:active {
        transform: scale(0.95);
    }
    
    /* Overlay for mobile menu */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        display: block;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Hide mobile header on desktop */
.mobile-header {
    display: none;
}

/* Hide sidebar overlay on desktop */
.sidebar-overlay {
    display: none;
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    /* Ensure all elements fit within viewport */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix potential overflow issues */
    .section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Ensure grids don't overflow */
    .services-grid,
    .projects-grid,
    .skills-categories,
    .certifications-grid,
    .blog-grid,
    .tools-grid,
    .achievements-grid,
    .hobbies-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix image overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix text overflow */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #50BA9B, #62D3D6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(80, 186, 155, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1001;
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(80, 186, 155, 0.4);
    background: linear-gradient(135deg, #62D3D6, #50BA9B);
}

.go-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .go-to-top {
        bottom: 100px !important; /* Position well above mobile header */
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
        z-index: 9999 !important; /* Very high z-index */
        position: fixed !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #50BA9B, #62D3D6) !important;
        border: 2px solid white !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 20px rgba(80, 186, 155, 0.6) !important;
        color: white !important;
        cursor: pointer !important;
        /* Ensure proper initial state */
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(20px) !important;
        transition: all 0.3s ease !important;
    }

    .go-to-top.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .go-to-top:hover,
    .go-to-top:active {
        transform: scale(1.1) !important;
        box-shadow: 0 8px 25px rgba(80, 186, 155, 0.8) !important;
        background: linear-gradient(135deg, #62D3D6, #50BA9B) !important;
    }
}
