/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #121212;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --button-border: rgba(255, 255, 255, 0.15);
    --button-primary: #ffffff;
    --button-primary-text: #121212;
    --hover-gray: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --button-border: rgba(0, 0, 0, 0.15);
    --button-primary: #1a1a1a;
    --button-primary-text: #ffffff;
    --hover-gray: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg);
    min-height: 100vh;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Card */
.profile-card {
    width: 100%;
    text-align: left;
    max-width: 600px;
}

.photo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 0 2rem 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--button-border);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-photo {
    color: var(--text-secondary);
    text-align: center;
    display: none;
}

.placeholder-photo p {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.placeholder-photo small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Name Styles */
.name {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* Profile Section Styles */
.profile-section {
    margin-bottom: 2.5rem;
    text-align: left;
}

.profile-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    text-align: left;
    font-weight: 400;
}

.profile-text:last-child {
    margin-bottom: 0;
}

/* CTA Section Styles */
.cta-section {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid var(--button-border);
    min-width: 120px;
    text-align: center;
    cursor: pointer;
}

.cta-button-primary {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border-color: var(--button-primary);
}

.cta-button-primary:hover {
    background: #f8f8f8;
    border-color: #f8f8f8;
    transform: translateY(-1px);
}

.cta-button-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--button-border);
}

.cta-button-secondary:hover {
    background: var(--hover-gray);
    border-color: var(--button-border);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 18px;
    }
    
    .container {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .profile-card {
        margin-top: 5rem !important;
    }
    
    .photo-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 1.75rem;
    }
    
    .name {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .profile-section {
        margin-bottom: 2rem;
    }
    
    .profile-text {
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    .cta-section {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-button {
        width: auto;
        padding: 0.875rem 1.5rem;
        flex: 0 1 auto;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 18px;
    }
    
    .container {
        padding: 1rem;
        align-items: flex-start;
    }
    
    .profile-card {
        margin-top: 5rem !important;
    }
    
    .photo-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .name {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .profile-section {
        margin-bottom: 1.75rem;
    }
    
    .profile-text {
        font-size: 1.0625rem;
        line-height: 1.6;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.8125rem 1.25rem;
        flex: 0 1 auto;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--button-border);
    background: var(--bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background: var(--hover-gray);
    transform: translateY(-2px);
}

.theme-toggle svg {
    transition: all 0.3s ease;
}

#sun-icon {
    opacity: 0;
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

#moon-icon {
    opacity: 1;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

[data-theme="light"] #sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] #moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}
