* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    transition: background 0.5s ease;
    position: relative;
    padding-bottom: 80px;
}

/* --- Date & Time Display --- */
.datetime {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    background: rgba(255,255,255,0.6);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

body.dark .datetime {
    color: #fff;
    background: rgba(0,0,0,0.5);
}

/* --- Background Animations --- */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Light Mode Clouds */
.cloud {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(2px);
}

@keyframes floatCloud {
    from { transform: translateX(0); }
    to { transform: translateX(50px); }
}

.cloud {
    animation: floatCloud 20s linear infinite alternate;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

/* Cloud size variations */
.cloud.small { width: 60px; height: 30px; }
.cloud.small::before { width: 30px; height: 30px; top: -10px; left: -15px; }
.cloud.small::after { width: 30px; height: 30px; top: -8px; left: 35px; }

.cloud.medium { width: 100px; height: 50px; }
.cloud.medium::before { width: 50px; height: 50px; top: -20px; left: -25px; }
.cloud.medium::after { width: 50px; height: 50px; top: -15px; left: 60px; }

.cloud.large { width: 140px; height: 70px; }
.cloud.large::before { width: 70px; height: 70px; top: -25px; left: -35px; }
.cloud.large::after { width: 70px; height: 70px; top: -20px; left: 80px; }


/* Dark Mode Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.2; }
    to { opacity: 1; }
}


/* --- Card --- */
.card {
    width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, background 0.4s ease, color 0.4s ease;
}
.card:hover { transform: translateY(-5px); }

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-image img { transform: scale(1.1); }

.card-content {
    padding: 25px;
    text-align: center;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -60px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover .profile-img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

h2 { margin: 10px 0 5px; color: #333; font-size: 1.4rem; }
p { color: #666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 15px; }

.skills {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.skill-tag {
    padding: 6px 12px;
    background: #f0f2f5;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
}
.social-icon:hover {
    background: #4299e1;
    color: #fff;
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Contact Button */
.contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: #0077ff;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.contact-btn:hover {
    background: #005fcc;
    transform: translateY(-2px);
}

/* Dark Mode */
body.dark {
    background: linear-gradient(135deg, #0d0d1a, #1c1c2b);
}
body.dark .card { background: #2b2b2b; color: #f5f5f5; }
body.dark h2 { color: #fff; }
body.dark p { color: #bbb; }
body.dark .skill-tag { background: #3a3a3a; color: #eee; }
body.dark .social-icon { background: #3a3a3a; color: #eee; }
body.dark .social-icon:hover { background: #4299e1; color: #fff; }