/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Arc Browser integration - use custom properties when available */
:root {
    /* Fallback to our gradient colors if Arc properties aren't available */
    --arc-palette-background: #3C5AC0;
    --arc-palette-foregroundPrimary: #1a1a1a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--arc-palette-foregroundPrimary, #1a1a1a);
    background: linear-gradient(180deg, 
        var(--arc-palette-background, #3C5AC0) 0%, 
        #4F70DD 40%, 
        #8CA3E8 80%, 
        #EACDA3 100%);
    font-size: 16px;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 60px 40px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset,
        0 1px 0 rgba(255, 255, 255, 0.3) inset;
    width: 402px;
    height: 874px;
    position: relative;
    transform: translateZ(0);
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container:hover {
    transform: translateZ(0) translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

/* Enhanced glass effect with pseudo-elements for depth */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 60px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.container::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border-radius: 59px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Content styling */
.content {
    position: relative;
    z-index: 3;
    font-size: 1.8rem;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.3);
    font-weight: 400;
    text-align: left;
}
.content p {
    margin-bottom: 1.4rem;
}
.small {
    font-size: 1.2rem;
}

.name {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.contact-link {
    color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-link:hover {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 500;
}


/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    .container {
        /* Maintain aspect ratio 402:874 ≈ 0.46, with viewport-based sizing */
        width: min(350px, calc(100vw - 40px));
        height: min(760px, calc((100vh - 40px) * 0.9));
        /* Ensure we don't exceed the aspect ratio */
        max-height: calc((min(350px, calc(100vw - 40px))) * 2.17);
        padding: 50px 35px;
        border-radius: 50px;
    }
    
    .container::before {
        border-radius: 50px;
    }
    
    .container::after {
        border-radius: 49px;
    }
    
    .content {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        /* Maintain aspect ratio with smaller margins */
        width: min(300px, calc(100vw - 30px));
        height: min(650px, calc((100vh - 30px) * 0.9));
        /* Ensure we don't exceed the aspect ratio */
        max-height: calc((min(300px, calc(100vw - 30px))) * 2.17);
        padding: 40px 30px;
        border-radius: 45px;
    }
    
    .container::before {
        border-radius: 45px;
    }
    
    .container::after {
        border-radius: 44px;
    }
    
    .content {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
        box-shadow: none;
        background-color: white;
    }
}
