:root {
    --primary-color: #2e7d32;      /* Forest Green */
    --secondary-color: #4caf50;    /* Leaf Green */
    --accent-color: #66bb6a;       /* Light Green */
    --text-primary: #000000;       /* Black */
    --text-secondary: #333333;     /* Dark Gray */
    --bg-primary: #ffffff;         /* White */
    --bg-secondary: #f5f5f5;       /* Light Gray */
    --bg-gradient: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background: #e8f5e9;  /* Soft green background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
}

.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 150px;
    height: 3rem;
    background: rgba(46, 125, 50, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    border-radius: 4rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

.card-container {
    width: 100%;
    max-width: 420px;
    margin-top: 2rem;
}

.card {
    background: var(--bg-primary);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
}

.card-header {
    background: url(../img/bgg.png);
    background-position: center;
    background-size: cover;
    padding: 40px 30px 100px;
    position: relative;
    text-align: center;
    color: #fff;
      border: 1px solid rgba(46, 125, 50, 0.1);
}

.profile-img-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid #fff;
    background-color: #e8f5e9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.03);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 70px 30px 35px;
    text-align: center;
    background: #fff;
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
}

.title {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.description {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 0 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #000;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: var(--transition);
    border-radius: 12px;
    background: #fafafa;
}

.contact-item:hover {
    background: var(--primary-color);
    padding-left: 20px;
}

.contact-item:hover a,
.contact-item:hover i {
    color: #fff !important;
}

.contact-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    transition: var(--transition);
    width: 100%;
    font-weight: 500;
}

.contact-item i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.social-link:hover {
    transform: translateY(-5px);
    background: #1b5e20;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.4);
}

.add-contact-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 90%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-contact-btn:hover {
    transform: translateY(-3px);
    background: #1b5e20;
    box-shadow: 0 12px 25px rgba(27, 94, 32, 0.4);
}

.add-contact-btn i {
    margin-right: 10px;
}

.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
    min-width: 130px;
    z-index: 1001;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 0.75rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    color: #000;
    font-weight: 500;
}

.language-option:hover {
    background: #e8f5e9;
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .card-container {
        max-width: 100%;
    }
    .card-header {
        padding: 30px 20px 80px;
    }
    .card-body {
        padding: 60px 20px 25px;
    }
    .header {
        padding: 0 1rem;
        width: 90%;
    }
}