* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #749f74;
    --primary-dark: #5a7d5a;
    --primary-light: #8fb68f;
    --secondary-color: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-light: #f8f8f8;
    --gray-medium: #e0e0e0;
    --shadow: rgba(116, 159, 116, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: var(--secondary-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animated Background */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

#backgroundCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(245, 245, 245, 0.95) 50%,
        rgba(248, 248, 248, 0.9) 100%
    );
}

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;

    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.profile p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Links Section */
.links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.link:nth-child(1) { animation-delay: 0.1s; }
.link:nth-child(2) { animation-delay: 0.15s; }
.link:nth-child(3) { animation-delay: 0.2s; }
.link:nth-child(4) { animation-delay: 0.25s; }
.link:nth-child(5) { animation-delay: 0.3s; }
.link:nth-child(6) { animation-delay: 0.35s; }

.link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    top: 0;
    left: -100%;
    transition: left 0.5s ease;
    z-index: -1;
}

.link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.link:hover::before {
    left: 0;
}

.link:hover .link-icon,
.link:hover .link-text {
    color: var(--white);
}

.link-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 12px;
    transition: all 0.3s ease;
}

.link-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeIn 1s ease-out 0.5s;
    animation-fill-mode: both;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow);
    background: var(--primary-color);
}

.social-icon i {
    font-size: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-icon:hover i {
    color: var(--white);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-light);
    font-size: 14px;
    animation: fadeIn 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 30px 15px;
    }

    .logo {
        width: 160px;
        height: 160px;
    }

    .profile h1 {
        font-size: 26px;
    }

    .profile p {
        font-size: 14px;
    }

    .links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .link {
        padding: 18px;
    }

    .link-icon {
        font-size: 20px;
        margin-right: 10px;
    }

    .link-text {
        font-size: 14px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .social-icon i {
        font-size: 18px;
    }
}

/* Tablet Design */
@media (min-width: 601px) and (max-width: 900px) {
    .container {
        max-width: 700px;
    }
    
    .links {
        grid-template-columns: repeat(3, 1fr);
    }
}