/* Austin Azenga Credit System - Premium Styling */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warm Color Palette */
    --primary-gold: #fbbf24;
    --primary-amber: #f59e0b;
    --primary-orange: #ea580c;
    --secondary-warm: #fef3c7;
    --accent-peach: #fed7aa;
    --accent-coral: #fdba74;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
    --gradient-secondary: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(251, 191, 36, 0.15);
    --shadow-medium: 0 8px 30px rgba(251, 191, 36, 0.25);
    --shadow-strong: 0 15px 50px rgba(251, 191, 36, 0.35);
    --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Timing Functions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Body & HTML */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #1f2937;
    background: #0f172a;
    position: relative;
    overflow-y: auto;
}

/* Animated Background */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 25%,
        #334155 50%,
        #475569 75%,
        #64748b 100%
    );
    z-index: -2;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: -1;
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    animation: pulseGlow 4s ease-in-out infinite alternate;
    z-index: 0;
}

/* Floating Particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: floatParticle 20s linear infinite;
}

.bg-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.bg-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: -10s;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: containerEnter 1s var(--ease-spring) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* Close Button */
.close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.close-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    transform-origin: center;
}

.close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s var(--ease-spring) 0.2s forwards;
    opacity: 0;
    transform: translateY(50px);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    animation: rotateGlow 10s linear infinite;
    z-index: -1;
}

/* Avatar Section */
.avatar-section {
    text-align: center;
    margin-bottom: 40px;
    animation: avatarEnter 1s var(--ease-bounce) 0.5s forwards;
    opacity: 0;
    transform: scale(0.8);
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    z-index: 2;
}

.avatar-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-amber)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: rotateRing 8s linear infinite;
    z-index: 1;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Content Section */
.content-section {
    animation: contentSlideUp 1s var(--ease-smooth) 0.7s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Typography */
.name-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 10px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.profession {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.description {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.7;
}

.description p {
    margin-bottom: 15px;
    color: #4b5563;
}

.cta-text {
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    margin-bottom: 30px;
}

.contact-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 25px;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contact Buttons */
.contact-btn {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s var(--ease-smooth);
    z-index: -1;
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
    color: white;
}

.contact-btn:hover .contact-arrow {
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    transition: all 0.3s var(--ease-smooth);
}

.email-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.call-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.contact-info {
    flex: 1;
}

.contact-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 0.9rem;
    color: #6b7280;
    transition: color 0.3s var(--ease-smooth);
}

.contact-btn:hover .contact-value {
    color: rgba(255, 255, 255, 0.9);
}

.phone-image {
    margin-top: 5px;
}

.phone-image img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s var(--ease-smooth);
}

.contact-btn:hover .phone-image img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.contact-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s var(--ease-smooth);
    opacity: 0.7;
}

/* Footer Text */
.footer-text {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    animation: fadeInUp 1s var(--ease-smooth) 1s forwards;
    opacity: 0;
    transform: translateY(10px);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    animation: floatRandom 15s infinite linear;
}

.float-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.float-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.float-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 25%;
    animation-delay: -6s;
    animation-duration: 14s;
}

.float-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 35%;
    animation-delay: -9s;
    animation-duration: 16s;
}

/* Animations */
@keyframes containerEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes avatarEnter {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contentSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatRandom {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -60px) rotate(180deg);
    }
    75% {
        transform: translate(-40px, -30px) rotate(270deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .profile-card {
        padding: 30px 25px;
        border-radius: 25px;
    }
    
    .close-btn {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .name-title {
        font-size: 2rem;
    }
    
    .profession {
        font-size: 1.1rem;
    }
    
    .contact-btn {
        padding: 18px 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
        font-size: 18px;
    }
    
    .avatar-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 25px 20px;
    }
    
    .name-title {
        font-size: 1.8rem;
    }
    
    .contact-btn {
        padding: 15px 18px;
        border-radius: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 16px;
    }
    
    .avatar-img {
        width: 90px;
        height: 90px;
    }
    
    .description {
        font-size: 0.95rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-card {
        border: 3px solid #000;
        background: #fff;
    }
    
    .contact-btn {
        border: 2px solid #000;
    }
}

/* 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;
    }
}

/* Print styles */
@media print {
    .bg-overlay,
    .bg-particles,
    .floating-elements,
    .close-btn {
        display: none;
    }
    
    .profile-card {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .contact-btn {
        border: 1px solid #000;
        background: #fff;
    }
}