/* General Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #104b72;
    --accent-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
}

.header .infos h6.title {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.header .infos .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.header .infos p {
    font-size: 1.1rem;
    margin: 5px 0;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-dark {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
    display: flex;
    justify-content: space-around;
}

.widget-item {
    text-align: center;
}

.widget-item h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.custom-card {
    transition: all 0.3s;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.custom-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-item h6 {
    font-weight: 600;
    margin-bottom: 10px;
}

.progress {
    height: 30px;
    border-radius: 15px;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.achievement-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px;
}

.contact-infos .item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.contact-infos .item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 20px;
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
}

.social-item {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin: 0 5px;
    transition: all 0.3s;
}

.social-item:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.experience-card {
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 30px;
}

.experience-card h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.experience-card .period {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 8px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s;
    height: 300px;
    background: #f8f9fa;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    color: white;
    padding: 20px;
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    margin-bottom: 20px;
}

.portfolio-overlay .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 25px;
}

.portfolio-overlay .btn:hover {
    background: var(--secondary-color);
    color: white;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.fade-in-up {
    animation-name: fadeInUp;
}

.fade-in {
    animation-name: fadeIn;
}

.slide-in-left {
    animation-name: slideInLeft;
}

.slide-in-right {
    animation-name: slideInRight;
}

.scale-in {
    animation-name: scaleIn;
}

/* Stagger animation delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* Profile image floating animation */
.profile-image {
    animation: float 6s ease-in-out infinite;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    background-color: white;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Progress bar animation */
.progress-bar {
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Achievement badge pulse */
.achievement-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}