/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F3F3EE;
    --card-bg: #ffffff;
    --card-hover: #fefefe;
    --text-primary: #4A2F24;
    --text-secondary: #7a6157;
    --accent-color: #4A2F24;
    --accent-dark: #2d1c14;
    --accent-light: #8b7366;
    --border-color: #e5e5dc;
    --shadow-light: rgba(74, 47, 36, 0.06);
    --shadow-medium: rgba(74, 47, 36, 0.1);
    --shadow-heavy: rgba(74, 47, 36, 0.15);
    --border-radius: 16px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #F3F3EE;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 40px;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s ease-out;
    position: relative;
}

.container::before {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner Section */
.banner {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-light), 0 2px 12px rgba(74, 47, 36, 0.05);
}

.banner-background {
    position: absolute;
    inset: 0;
    background: url('banner.jpeg') center center / cover no-repeat;
    opacity: 1;
}

.banner-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243, 243, 238, 0.75) 0%, rgba(243, 243, 238, 0.65) 100%);
}

.banner-content {
    position: relative;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.banner-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 32px var(--shadow-medium);
    position: relative;
}

.banner-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.banner-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.65;
    margin-bottom: 28px;
    font-weight: 400;
}

.banner-socials {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.banner-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.banner-social-icon svg {
    fill: currentColor;
    stroke: none;
}

.banner-social-icon:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.banner-social-icon:active {
    transform: translateY(0);
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 28px;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 24px var(--shadow-medium), 0 2px 8px var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-color), var(--border-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium), 0 4px 12px var(--shadow-light);
}

.profile-image:hover::after {
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    font-size: 1.125rem;
    color: var(--accent-color);
    max-width: 340px;
    line-height: 1.6;
    font-weight: 300;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 18px 32px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.link-button:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--shadow-medium);
    transform: translateY(-2px);
}

.link-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--shadow-light);
}

.link-text {
    position: relative;
    z-index: 1;
}

.link-icon {
    display: none;
}

.link-text {
    text-align: center;
}

/* Section Header */
.section-header {
    width: 100%;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
}

/* Products Section */
.products {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.product-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    gap: 16px;
}

.product-card:hover {
    background: var(--card-hover);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f3f0;
    border: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
}

.product-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: var(--transition);
    flex-shrink: 0;
}

.product-card:hover .product-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.social-icon:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.social-icon:active {
    transform: scale(0.95);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 20px;
}

.footer-logo {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 30px 20px 40px;
    }

    .container {
        max-width: 100%;
    }

    .banner {
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .banner-content {
        padding: 50px 30px;
    }

    .banner-image {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 0.9375rem;
    }

    .banner-description {
        font-size: 0.875rem;
    }

    .banner-social-icon {
        width: 40px;
        height: 40px;
    }

    .profile-image {
        width: 110px;
        height: 110px;
        border-width: 3px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-bio {
        font-size: 1rem;
    }

    .links {
        gap: 14px;
    }

    .link-button {
        padding: 16px 24px;
        font-size: 0.875rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .product-image {
        width: 56px;
        height: 56px;
    }

    .product-name {
        font-size: 0.875rem;
    }

    .product-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 16px 30px;
    }

    .banner {
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .banner-content {
        padding: 40px 24px;
    }

    .banner-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
        margin-bottom: 20px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 0.875rem;
    }

    .banner-description {
        font-size: 0.8125rem;
        margin-bottom: 24px;
    }

    .banner-socials {
        gap: 12px;
    }

    .banner-social-icon {
        width: 38px;
        height: 38px;
    }

    .banner-social-icon svg {
        width: 18px;
        height: 18px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .profile-name {
        font-size: 1.125rem;
    }

    .profile-bio {
        font-size: 0.9375rem;
    }

    .links {
        gap: 12px;
    }

    .link-button {
        padding: 14px 20px;
        font-size: 0.8125rem;
        border-radius: 10px;
    }

    .social-icons {
        gap: 16px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .product-card {
        padding: 10px;
        gap: 10px;
    }

    .product-image {
        width: 48px;
        height: 48px;
    }

    .product-name {
        font-size: 0.8125rem;
    }

    .product-description {
        font-size: 0.6875rem;
        -webkit-line-clamp: 1;
    }

    .product-price {
        font-size: 0.8125rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .link-button {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.link-button:focus,
.social-icon:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.link-button:focus:not(:focus-visible),
.social-icon:focus:not(:focus-visible) {
    outline: none;
}

/* Selection styling */
::selection {
    background: var(--accent-color);
    color: #ffffff;
}

/* Product price color update */
.product-price {
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
