:root {
    --bg-color: #fcf9ff;
    --text-color: #10002B;
    --primary-color: #5A189A;
    --secondary-color: rgba(255, 255, 255, 0.9);
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(90, 24, 154, 0.08);
    --border-radius: 16px;
}

.dark-mode {
    --bg-color: #10002B;
    --text-color: #E0AAFF;
    --primary-color: #C77DFF;
    --secondary-color: rgba(36, 0, 70, 0.9);
    --card-bg: #240046;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    transition: background-color 0.4s ease, color 0.4s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: var(--secondary-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: background-color 0.4s ease;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(90, 24, 154, 0.2);
}

#modeToggle {
    margin-left: 60px;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(90, 24, 154, 0.4);
}

.dark-mode .btn {
    color: #10002B;
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.dark-mode .outline-btn:hover {
    color: #10002B;
}

.banner {
    background: linear-gradient(135deg, rgba(36, 0, 70, 0.9) 0%, rgba(123, 44, 191, 0.9) 100%);
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.banner-content {
    animation: fadeInDown 1s ease;
}

.banner h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.banner p {
    font-size: 22px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-section {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2, #persons h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#persons {
    padding: 60px 40px;
    text-align: center;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.person-card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.person-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(90, 24, 154, 0.2);
}

.person-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    transition: transform 0.4s ease;
}

.person-card:hover img {
    transform: scale(1.1);
}

.person-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.specialist {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.info {
    width: 100%;
    text-align: left;
    background-color: rgba(90, 24, 154, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dark-mode .info {
    background-color: rgba(199, 125, 255, 0.1);
}

.info p {
    font-size: 14px;
    margin-bottom: 5px;
}

.bio {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 15px;
    opacity: 0.8;
    flex-grow: 1;
}

footer {
    background-color: var(--secondary-color);
    padding: 60px 60px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.socials a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.socials a:hover {
    color: var(--primary-color);
}

.newsletter input {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 30px;
    outline: none;
    width: 250px;
    margin-right: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.dark-mode .newsletter input {
    border-color: #3C096C;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    padding-top: 20px;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}