@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@font-face {
    font-family: 'NotoColorEmojiLimited';
    unicode-range: U+1F1E6-1F1FF;
    src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf);
}

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.dark-mode {
    --primary-color: #1a6ca1;
    --primary-dark: #195a8e;
    --secondary-color: #1d2935;
    --light-bg: #1E1E1E;
    --card-bg: #2C2C2C;
    --text-color: #E0E0E0;
    --border-color: #444444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, 
        'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 
        'Segoe UI Emoji', 'Segoe UI Symbol';
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 auto;
    max-width: 90%;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 1;
    transition: background-color 0.3s ease;
}

.intro {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    padding: 2rem;
    background-color: var(--light-bg);
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dark-mode .intro {
    background-color: #3c3c3c;
}

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

.intro img:hover {
    transform: scale(1.05);
}

.intro-text {
    flex: 1;
}

.intro-text p {
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.8rem;
}

.dark-mode h2 {
    color: var(--primary-color);
}

.overlay {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro:hover .overlay {
    opacity: 1;
}

.contact-info-container {
    margin-top: 2rem;
}

.contact-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-item {
    text-align: center;
    transition: transform 0.3s ease;
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    width: 150px;
    box-shadow: var(--shadow);
}

.dark-mode .contact-item {
    background-color: #3c3c3c;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item a {
    display: block;
    text-decoration: none;
}

.contact-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.contact-item:hover img {
    transform: scale(1.1);
}

.contact-item p {
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.dark-mode .contact-item p {
    color: var(--primary-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

#darkModeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
}

#darkModeToggle:hover {
    transform: scale(1.1);
}

/* Tooltip functionality for copying */
.tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .intro {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .intro-text p {
        text-align: justify;
    }

    .contact-section {
        gap: 1rem;
    }

    .contact-item {
        width: 120px;
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0.5rem;
    }
    
    h1 {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    }

    .contact-item {
        width: 100px;
        padding: 0.8rem;
    }
}