:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #00a0e9;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --whatsapp-color: #25D366;
    --youtube-color: #FF0000;
    --instagram-color: #E1306C;
    --email-color: #D44638;
    --site-color: #6c757d;
    --math-bg: #f0f8ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in-out;
}

.logo {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-image {
    height: 100px;
    margin-bottom: 15px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.logo h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    line-height: 1;
}

.logo p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-top: -10px;
}

.welcome-message {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-top: 15px;
    font-weight: 500;
}

.math-pattern {
    background-color: var(--math-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: pulse 4s infinite;
}

h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 30px 0 25px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 30px 0 20px;
    letter-spacing: 1px;
    text-align: center;
}

.links-section {
    margin-bottom: 50px;
    animation: slideUp 0.8s ease-out;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 150px;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.link-card i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    z-index: 2;
}

.link-card span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    z-index: 2;
}

.link-card p {
    font-size: 1rem;
    opacity: 0.9;
    z-index: 2;
}

.animation-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: ripple 3s infinite;
    z-index: 1;
}

.whatsapp {
    background-color: var(--whatsapp-color);
}

.site {
    background-color: var(--site-color);
}

.youtube {
    background-color: var(--youtube-color);
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.email {
    background-color: var(--email-color);
}

.portfolio-section {
    animation: slideUp 1s ease-out;
    margin-top: 40px;
}

.portfolio-category {
    margin-bottom: 40px;
}

.portfolio-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.portfolio-toggle {
    width: 100%;
    padding: 18px 25px;
    border: none;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: left;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.portfolio-toggle:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.portfolio-toggle i {
    transition: transform 0.3s ease;
}

.portfolio-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
    background-color: white;
}

.portfolio-content p, .portfolio-content ul {
    margin-bottom: 18px;
}

.portfolio-content ul {
    padding-left: 25px;
}

.portfolio-content li {
    margin-bottom: 10px;
}

.portfolio-item.active .portfolio-content {
    max-height: 1000px;
    padding: 25px;
}

.portfolio-item.active .portfolio-toggle i {
    transform: rotate(180deg);
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    color: var(--text-color);
    font-size: 0.9rem;
    background-color: var(--light-color);
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2.8rem;
    }
    
    .logo p {
        font-size: 1.5rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .portfolio-toggle {
        font-size: 1.1rem;
    }
}