/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --accent-yellow: #ffeb3b;
    --accent-pink: #e91e63;
    --accent-blue: #2196f3;
    --accent-green: #4caf50;
    --text-dark: #212121;
    --text-light: #757575;
    --border-thick: 4px;
    --shadow-bold: 8px 8px 0px #000000;
    --shadow-hover: 12px 12px 0px #000000;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Gradient Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 98%, #000 98%),
        linear-gradient(transparent 98%, #000 98%);
    background-size: 20px 20px;
    background-position: 0 0, 0 0;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideInDown 0.8s ease-out;
}

.profile-section {
    background: var(--primary-bg);
    border: var(--border-thick) solid var(--text-dark);
    border-radius: 0;
    padding: 2rem;
    box-shadow: var(--shadow-bold);
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-pink), var(--accent-blue), var(--accent-green));
}

.profile-image {
    margin-bottom: 1.5rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 0;
    border: var(--border-thick) solid var(--text-dark);
    object-fit: cover;
    box-shadow: var(--shadow-bold);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.name {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Links Container */
.links-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Link Card Styles */
.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--primary-bg);
    border: var(--border-thick) solid var(--text-dark);
    border-radius: 0;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-bold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: var(--delay);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.link-card:hover::before {
    transform: scaleX(1);
}

.link-card:active {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px #000000;
}

/* Link Icon */
.link-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border: var(--border-thick) solid var(--text-dark);
    border-radius: 0;
    flex-shrink: 0;
    transition: var(--transition);
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--text-dark);
    color: var(--accent-color);
}

.link-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: var(--transition);
}

.link-card:hover .link-icon svg {
    color: var(--accent-color);
}

/* Link Content */
.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.link-card:hover .link-title {
    color: var(--accent-color);
}

.link-description {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Link Arrow */
.link-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-dark);
    border: var(--border-thick) solid var(--text-dark);
    border-radius: 0;
    flex-shrink: 0;
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    background: var(--accent-color);
    transform: translateX(4px);
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    color: white;
    transition: var(--transition);
}

.link-card:hover .link-arrow svg {
    color: var(--text-dark);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: var(--border-thick) solid var(--text-dark);
    margin-top: auto;
}

.footer-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .link-card {
        padding: 1.25rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .link-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .link-title {
        font-size: 1.125rem;
    }
    
    .link-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .name {
        font-size: 1.75rem;
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .link-icon {
        width: 36px;
        height: 36px;
    }
    
    .link-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #000000;
        --shadow-bold: 12px 12px 0px #000000;
        --shadow-hover: 16px 16px 0px #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
