* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2a2a2a;
    --hover-border: #4a4a4a;
}

body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --hover-border: #999999;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
}

.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.theme-toggle:hover {
    border-color: var(--hover-border);
    transform: rotate(180deg) scale(1.1);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.container {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 1.5rem;
}

.logo {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.learning-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.links-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover {
    border-color: var(--hover-border);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.light-mode .link-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-icon {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.projects-section {
    margin-bottom: 1.5rem;
}

.projects {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-item {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-item:hover {
    border-color: var(--hover-border);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.light-mode .project-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-icon {
    font-size: 1.5rem;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.light-mode .tooltip {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-item:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.tooltip-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.tooltip-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

footer {
    margin-top: 2rem;
}

footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.canva-icon {
  background-image: url('canva-logo-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 25px;
  height: 25px;
}

@media (max-width: 640px) {
    .logo {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 0.8rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .project-item {
        width: 45px;
        height: 45px;
    }

    .projects {
        gap: 1rem;
    }
}

@media (max-height: 700px) {
    .logo {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.15rem;
    }

    .about-text {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .learning-text {
        margin-bottom: 1.5rem;
    }

    .links-section,
    .projects-section {
        margin-bottom: 1.5rem;
    }

    footer {
        margin-top: 1.5rem;
    }
}
