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

body {
    font-family: 'Oxygen', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    color: #505865;
}

/* Container Adjustments */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navbar Styles */
#header-nav {
    background-color: rgba(255, 255, 255, 0.98);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-header {
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: auto;
}

.logo-img {
    width: 50px;
    height: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.1);
}

.brand-text h1 {
    font-size: 1.8rem;
    margin: 0;
    color: #2c3e50;
}

.profession {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

.navbar-nav > li > a {
    color: #2c3e50 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
}

.navbar-nav > li > a:hover {
    color: #3498db !important;
    transform: translateY(-2px);
}

.navbar-toggle {
    margin-left: auto;
    margin-right: 15px;
}

.navbar-collapse {
    border-top: none;
    box-shadow: none;
}

/* Profile Section */
.profile-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.profile-image {
    position: relative;
    margin-bottom: 20px;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #3498db;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Progress Bar Styles */
.progress {
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin: 10px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 6px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar[data-percent] {
    width: 0;
}

.progress-bar.animated {
    width: calc(var(--percent) * 1%);
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Testimonials */
.testimonial-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.testimonial-content:before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50px;
    border: 10px solid transparent;
    border-top-color: #f8f9fa;
}

.testimonial-content .fa-quote-left {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #505865;
}

.testimonial-content footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

.testimonial-content footer strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.testimonial-content footer .title {
    color: #666;
    font-size: 0.9rem;
}

/* Projects Section */
.project-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Updated Contact Section Styles */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #3498db;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
    background: #e8f4fc;
}

.contact-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3498db;
}

/* Updated Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

/* Social Media Icon Colors */
.social-link.facebook i { color: #1877f2; }
.social-link.twitter i { color: #1da1f2; }
.social-link.github i { color: #333; }
.social-link.instagram i { 
    background: -webkit-linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.social-link.linkedin i { color: #0077b5; }
.social-link.whatsapp i { color: #25D366; }

/* Social Links Hover Effects */
.social-link:hover {
    transform: translateY(-3px);
    background: #e8f4fc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

footer h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Button Styles */
.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #3498db;
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Section Spacing */
section {
    padding: 80px 0;
}

section:first-of-type {
    margin-top: 70px;
}

/* Skills Section */
.skill-item {
    margin-bottom: 30px;
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill-header h4 {
    margin: 0;
    flex: 1;
}

.skill-tools {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Certificate Cards */
.certificate-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.certificate-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

/* CV Section */
.cv-block {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cv-block h3 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.cv-block h3 i {
    margin-right: 8px;
}

.cv-item {
    border-left: 3px solid #3498db;
    padding-left: 15px;
    margin-bottom: 15px;
}

.cv-item h4 {
    margin-bottom: 4px;
    font-size: 1rem;
    color: #2c3e50;
}

.cv-institution {
    color: #3498db;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.cv-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mobile contacts bar */
.mobile-contacts {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #dee2e6;
}

.mobile-contacts a {
    color: #2c3e50;
    text-decoration: none;
    margin-right: 15px;
    display: inline-block;
}

.mobile-contacts a i {
    color: #3498db;
    margin-right: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background: white;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        margin: 0;
        padding: 10px 0;
    }

    .navbar-nav > li > a {
        padding: 12px 20px;
    }

    .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .brand-text h1 {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profession {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-item {
        font-size: 1rem;
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}