/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Properties */
:root {
    --bg-color: #111111;
    --text-color: #eeeeee;
    --link-color: #a855f7;
    --card-bg: #1e1e1e;
    --accent-color: #6366f1;
    --spacing-unit: clamp(1rem, 2vw, 2rem);
    --container-width: min(90%, 1200px);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #111111;
    --link-color: #6366f1;
    --card-bg: #f9f9f9;
    --accent-color: #a855f7;
}

/* Base Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

/* Layout */
.container {
    width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-unit);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Links & Buttons */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.magic-link {
    display: inline-block;
    padding: 0.8em 1.6em;
    margin: 0.5em;
    background: linear-gradient(45deg, var(--accent-color), var(--link-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.magic-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin: calc(var(--spacing-unit) * 2) 0;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

/* Content Sections */
.section {
    margin: calc(var(--spacing-unit) * 2) 0;
    padding: var(--spacing-unit);
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Dark/Light Mode Toggle */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-unit: 1rem;
    }

    .container {
        width: 95%;
    }
} 