/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === LOADING SCREEN === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === MAIN CONTAINER === */
.card-container {
    max-width: 400px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: cardSlideUp 0.8s ease-out;
}

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

/* === BACKGROUND SHAPES === */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(103, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: -20px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: -30px;
    animation-delay: 4s;
}

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

/* === PROFILE SECTION === */
.profile-section {
    text-align: center;
    padding: 40px 30px 30px;
    position: relative;
    z-index: 2;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: profilePulse 3s ease-in-out infinite;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.1);
}

@keyframes profilePulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(103, 126, 234, 0.3);
    }
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #2ecc71;
    border: 3px solid white;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.profile-info {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1rem;
    font-weight: 500;
    color: #7f8c8d;
    margin-bottom: 3px;
}

.company {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-bottom: 15px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #95a5a6;
}

.location i {
    color: #e74c3c;
}

/* === CONTACT ACTIONS === */
.contact-actions {
    padding: 20px 30px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.call-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: translateY(0);
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.email-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

.save-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(149, 165, 166, 0.3);
}

.website-btn {
    background: linear-gradient(135deg, black, black);
    color: white;
}

.website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(149, 165, 166, 0.3);
}

.action-btn i {
    font-size: 1.1rem;
}

/* === ABOUT SECTION === */
.about-section {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.about-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.about-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(103, 126, 234, 0.2);
    animation: skillFloat 3s ease-in-out infinite;
}

.skill-tag:nth-child(2) { animation-delay: 0.5s; }
.skill-tag:nth-child(3) { animation-delay: 1s; }
.skill-tag:nth-child(4) { animation-delay: 1.5s; }

@keyframes skillFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* === SOCIAL SECTION === */
.social-section {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.social-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
}

.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
    border-color: rgba(0, 119, 181, 0.2);
}

.linkedin:hover {
    background: #0077b5;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
    border-color: rgba(29, 161, 242, 0.2);
}

.twitter:hover {
    background: #1da1f2;
    color: white;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.2);
}

.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.dribbble {
    background: rgba(234, 76, 137, 0.1);
    color: #ea4c89;
    border-color: rgba(234, 76, 137, 0.2);
}

.dribbble:hover {
    background: #ea4c89;
    color: white;
    box-shadow: 0 8px 20px rgba(234, 76, 137, 0.3);
}

.behance {
    background: rgba(5, 85, 255, 0.1);
    color: #0555ff;
    border-color: rgba(5, 85, 255, 0.2);
}

.behance:hover {
    background: #0555ff;
    color: white;
    box-shadow: 0 8px 20px rgba(5, 85, 255, 0.3);
}

.github {
    background: rgba(36, 41, 46, 0.1);
    color: #24292e;
    border-color: rgba(36, 41, 46, 0.2);
}

.github:hover {
    background: #24292e;
    color: white;
    box-shadow: 0 8px 20px rgba(36, 41, 46, 0.3);
}

/* === PORTFOLIO SECTION === */
.portfolio-section {
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.portfolio-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    gap: 15px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
    animation: fadeInUp 0.8s ease-out 1.3s both;
}

.footer p {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 3px;
}

.footer-note {
    font-weight: 500;
    color: #7f8c8d;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 480px) {
    .card-container {
        margin: 10px;
        border-radius: 20px;
    }
    
    .profile-section {
        padding: 30px 20px 25px;
    }
    
    .contact-actions,
    .about-section,
    .social-section,
    .portfolio-section {
        padding: 15px 20px;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .primary-actions,
    .secondary-actions {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 15px;
    }
}

/* === LANDSCAPE MODE === */
@media (orientation: landscape) and (max-height: 600px) {
    .card-container {
        margin: 10px auto;
    }
    
    .profile-section {
        padding: 20px 30px 15px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .name {
        font-size: 1.4rem;
    }
}

/* === SMOOTH SCROLL BAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}