:root {
    --primary: #e63946;
    --dark: #1d3557;
    --light: #f8f9fa;
    --grey: #8d99ae;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --primary: #ff6b6b;
    --dark: #f8f9fa;
    --light: #1a1a1a;
    --grey: #a0a0a0;
    --shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

nav a:hover:after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--dark);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.social-icon {
    width: 24px;
    height: 24px;
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--grey);
}

.company {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 600;
}

.company a {
    color: var(--primary);
    text-decoration: none;
}

.company a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--grey);
}

.contact-info a {
    color: var(--grey);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.info-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--grey);
}

.social-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--dark);
    transition: var(--transition);
}

.social-icon-button:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.moon-icon,
.sun-icon {
    transition: var(--transition);
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block !important;
}

[data-theme="dark"] footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--grey);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    header {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 1rem;
    }
}
