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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    position: relative;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.cloud-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
    animation: cloudFloat 30s infinite ease-in-out;
    overflow: hidden;
}

/* Binary data background */
.cloud-bg::before {
    content: '10101';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: rgba(255, 255, 255, 0.05);
    font-family: monospace;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    animation: binaryFloat 40s linear infinite;
    transform: rotate(45deg);
    pointer-events: none;
}

.cloud-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 1%,
            transparent 2%,
            transparent 3%
        ),
        linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 100%
        );
    animation: dataStream 20s linear infinite;
    opacity: 0.7;
}

/* Cloud computing connection lines */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%) 0 0/15px 15px,
        linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%) 0 0/15px 15px;
    animation: gridPattern 30s linear infinite;
    z-index: -1;
}

.cloud-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    animation: cloudFloat2 25s infinite ease-in-out reverse;
    filter: blur(3px);
}

/* Cloud particles with data nodes */
.cloud-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 10%) 0 0/15% 15%,
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 10%) 50% 50%/25% 25%,
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 15%) 0 0/20% 20%,
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 15%) 0 0/20% 20%;
    animation: particleFloat 40s linear infinite;
}

/* Data processing indicators */
.cloud-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    animation: dataProcess 25s ease-in-out infinite;
}

.profile-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

h2 {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 10px;
    text-decoration: none;
    color: #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-link i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.social-link.linkedin i { color: #0077b5; }
.social-link.github i { color: #333; }
.social-link.email i { color: #ea4335; }
.social-link.portfolio i { color: #2ecc71; }
.social-link.instagram i { color: #e4405f; }
.social-link.hackerrank i { color: #2ec866; }
.social-link.leetcode i { color: #f89f1b; }
.social-link.credly i { color: #ff6b00; }

@keyframes cloudFloat {
    0% {
        background-position: 0% 0%;
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        background-position: 50% 50%;
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
    100% {
        background-position: 100% 100%;
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes binaryFloat {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
    100% {
        transform: translateX(50%) translateY(50%) rotate(45deg);
    }
}

@keyframes gridPattern {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

@keyframes dataProcess {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.6;
    }
    75% {
        transform: scale(1.1) rotate(-2deg);
        opacity: 0.5;
    }
}

@keyframes serverPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes dataStream {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
    100% {
        transform: translateX(50%) translateY(50%) rotate(45deg);
    }
}

@keyframes particleFloat {
    0% {
        background-position: 0% 0%, 50% 50%;
    }
    100% {
        background-position: 100% 100%, 150% 150%;
    }
}

@keyframes cloudFloat2 {
    0% {
        background-position: 0% 0%;
        opacity: 0.4;
    }
    50% {
        background-position: 30% 60%;
        opacity: 0.6;
    }
    100% {
        background-position: 100% 100%;
        opacity: 0.4;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}
