/* Modern Contact Page with 3D Effects */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular Std', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    perspective: 1000px;
}

/* Animated Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 30%, #0f0f0f 70%, #000000 100%);
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(29, 185, 84, 0.8);
    border-radius: 50%;
    animation: floatParticles 8s linear infinite;
}

.floating-particles::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: 
        40px 60px 0 rgba(29, 185, 84, 0.6),
        -20px 80px 0 rgba(29, 185, 84, 0.4),
        60px 20px 0 rgba(29, 185, 84, 0.7),
        -40px -20px 0 rgba(29, 185, 84, 0.5),
        80px 100px 0 rgba(29, 185, 84, 0.3),
        120px 40px 0 rgba(29, 185, 84, 0.6),
        -60px 120px 0 rgba(29, 185, 84, 0.4);
}

.floating-particles::after {
    top: 30%;
    right: 20%;
    animation-delay: 4s;
    box-shadow: 
        -30px 40px 0 rgba(114, 137, 218, 0.6),
        50px -30px 0 rgba(114, 137, 218, 0.4),
        -70px 70px 0 rgba(114, 137, 218, 0.7),
        90px 50px 0 rgba(114, 137, 218, 0.5),
        -100px -40px 0 rgba(114, 137, 218, 0.3),
        -50px 90px 0 rgba(114, 137, 218, 0.6);
}

@keyframes floatParticles {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8;
    }
}

/* Gradient Orbs */
.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrbs 12s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #1db954, #1ed760);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #7289da, #99aab5);
    top: 60%;
    right: 15%;
    animation-delay: 4s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #ff6b6b, #feca57);
    bottom: 20%;
    left: 60%;
    animation-delay: 8s;
}

@keyframes floatOrbs {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    33% { 
        transform: translateY(-30px) scale(1.1);
    }
    66% { 
        transform: translateY(20px) scale(0.9);
    }
}

/* Navigation */
.contact-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.back-btn:hover {
    background: rgba(29, 185, 84, 0.2);
    transform: translateX(-5px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1db954;
}

/* Main Contact Container */
.contact-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 20px;
    position: relative;
}

/* 3D Contact Card */
.contact-card-3d {
    perspective: 1000px;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { 
        transform: translateY(0px) rotateY(0deg);
    }
    50% { 
        transform: translateY(-10px) rotateY(2deg);
    }
}

.card-front {
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1) 0%, transparent 50%, rgba(114, 137, 218, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-card-3d:hover .card-front::before {
    opacity: 1;
}

/* Profile Section */
.profile-section {
    margin-bottom: 40px;
    position: relative;
}

.profile-image-3d {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    perspective: 200px;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #1db954, #7289da, #ff6b6b, #1db954);
    background-size: 400% 400%;
    animation: gradientSpin 4s ease infinite;
    z-index: 0;
}

@keyframes gradientSpin {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #000000;
    z-index: 1;
    animation: avatarPulse 3s ease-in-out infinite;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.orbit-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 50%;
    animation: orbitRotate 8s linear infinite;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #1db954;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #1db954;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-name {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #1db954);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(29, 185, 84, 0.3);
}

.profile-title {
    font-size: 16px;
    color: #b3b3b3;
    margin-bottom: 16px;
    font-weight: 400;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #1db954;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #1db954;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.2);
    }
}

/* Contact Methods */
.contact-methods {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(29, 185, 84, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(29, 185, 84, 0.5);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(29, 185, 84, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000000;
    margin-right: 16px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item:hover .contact-icon {
    transform: rotateY(180deg) scale(1.1);
}

.contact-info {
    flex: 1;
    text-align: left;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-value {
    display: block;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.contact-action {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover .contact-action {
    opacity: 1;
}

.action-btn {
    background: rgba(29, 185, 84, 0.2);
    border: 1px solid #1db954;
    color: #1db954;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #1db954;
    color: #000000;
    transform: scale(1.1);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.quick-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quick-btn > * {
    position: relative;
    z-index: 1;
}

.quick-btn.primary {
    background: linear-gradient(135deg, #1db954, #1ed760);
    color: #000000;
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.3);
}

.quick-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(29, 185, 84, 0.4);
}

.quick-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-btn.secondary:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    transform: translateY(-3px) scale(1.05);
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1db954;
    animation: floatingIcon 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 10%; left: 5%; }
.floating-icon:nth-child(2) { top: 20%; right: 10%; }
.floating-icon:nth-child(3) { bottom: 30%; left: 8%; }
.floating-icon:nth-child(4) { bottom: 20%; right: 5%; }
.floating-icon:nth-child(5) { top: 60%; left: 15%; }

@keyframes floatingIcon {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Footer */
.contact-footer {
    position: relative;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: #b3b3b3;
    margin-bottom: 16px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: #1db954;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1db954;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a:hover {
    color: #1ed760;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 12px 20px;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .contact-container {
        padding: 80px 16px 16px;
    }
    
    .card-front {
        padding: 24px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-image-3d {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar {
        font-size: 36px;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .quick-btn {
        justify-content: center;
    }
    
    .floating-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-value {
        font-size: 14px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .back-btn span {
        display: none;
    }
}

/* Enhanced Interactive Effects */
.contact-item[data-method="phone"]:hover .contact-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.contact-item[data-method="email"]:hover .contact-icon {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.contact-item[data-method="linkedin"]:hover .contact-icon {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.contact-item[data-method="github"]:hover .contact-icon {
    background: linear-gradient(135deg, #333, #555);
}

.contact-item[data-method="whatsapp"]:hover .contact-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-item[data-method="instagram"]:hover .contact-icon {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
body {
    animation: pageLoad 1s ease-out;
}

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