/* Custom CSS for Rym Meroua Portfolio */
:root {
    --primary-color: #1E3A34;     /* Deep Halal Green */
    --secondary-color: #D4A373;   /* Muted Gold */
    --accent-color: #6B9080;      /* Soft Finance Green */

    --text-color: #1A1A1A;
    --text-light: #6D6D6D;

    --bg-light: #F7F7F2;
    --bg-dark: #1B1B1B;

    --white: #ffffff;

    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 35px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Language Switcher */
/* Circular Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

.lang-toggle i {
    font-size: 10px;
    transition: var(--transition);
}

.lang-dropdown.active .lang-toggle i {
    transform: rotate(180deg);
}

.current-lang {
    font-size: 12px;
    font-weight: 600;
}

.lang-options {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 60px;
    animation: slideDown 0.3s ease-out;
}

.lang-dropdown.active .lang-options {
    display: flex;
}

.lang-option {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    text-align: center;
}

.lang-option:hover,
.lang-option.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support for Language Switcher */
[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

[dir="rtl"] .lang-options {
    right: auto;
    left: 0;
}

/* Mobile Responsive Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .lang-toggle {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
    
    .lang-options {
        top: 55px;
        min-width: 55px;
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 15px;
    }
}

/* Navigation */
.navbar {
    background: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-name {
    display: block;
    color: var(--secondary-color);
    font-size: 4rem;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.profile-image-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.profile-image-placeholder {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.profile-image-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.personal-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item i {
    width: 30px;
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-image {
    display: grid;
    gap: 20px;
}

.image-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
}

.skill-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Education Section */
.education-section {
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-date {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.certification-grid {
    display: grid;
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.cert-item h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.cert-item small {
    color: var(--text-light);
}

/* Experience Section */
.experience-section {
    padding: 80px 0;
}

.experience-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.experience-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.experience-date {
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.experience-tags {
    margin-top: 20px;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* Heritage Section */
.heritage-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.heritage-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.instruments {
    margin: 30px 0;
}

.instruments h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.instrument-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.instrument-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.instrument-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.instrument-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.association {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.association h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.heritage-showcase {
    display: grid;
    gap: 20px;
}

.showcase-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.contact-item h5 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
    outline: none;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--primary-color) !important;
    padding: 30px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--white);
}

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

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .profile-image-placeholder i {
        font-size: 5rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .instrument-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .skill-card,
    .experience-card,
    .showcase-card,
    .image-card {
        padding: 25px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* Arabic Language Support */
body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 30px;
}

body[dir="rtl"] .timeline::before {
    left: auto;
    right: 15px;
}

body[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 40px;
}

body[dir="rtl"] .timeline-item::before {
    left: auto;
    right: -8px;
}

body[dir="rtl"] .info-item i {
    margin-right: 0;
    margin-left: 15px;
}

body[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 20px;
}

body[dir="rtl"] .hero-buttons .btn {
    margin-right: 0;
    margin-left: 15px;
}

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

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}