
/* Root Variables  */
:root {
    --primary: #4e54c8;
    --primary-light: #6a71e5;
    --secondary: #ff7e5f;
    --dark: #2c3e50;
    --light: #f9f9f9;
    --gray: #ecf0f1;
    --success: #ecc71;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --boder-radius: 12px;
    transition: all 0.3s ease;
}

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

/* Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

/* Container Styles */
.container {
    width: 100%;
    max-width: 500px; /* Optimal width for readability */
    margin: 0 auto;
}

/* Header Styles */
header {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

/* Profile Section */
.profile {
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Circular avatar */
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 50px;


}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark);

}

.tagline {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.bio {
    background: white;
    padding: 15px;
    border-radius: var(--boder-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

/* Link Cards Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;

}

.link-card {
    background: white;
    border-radius: var(--boder-radius);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: backwards;

}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Staggered animations for links */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}
.link-card:nth-child(2) {
    animation-delay: 0.2s;
}
.link-card:nth-child(3) {
    animation-delay: 0.3s;
}
.link-card:nth-child(4) {
    animation-delay: 0.4s;
}
.link-card:nth-child(5) {
    animation-delay: 0.5s;
}
.link-card:nth-child(6) {
    animation-delay: 0.6s;
}       
.link-card:nth-child(7) {
    animation-delay: 0.7s;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;


}

.link-content {
    flex-grow: 1;
}

.link-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.link-url {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.link-arrow {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    color: var(--primary);
    transform: translateY(3px);

}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding: 20px 0;
    border-top: 1px solid var(--gray);
    width: 100%;

}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);

}

/* Hover effect for theme toggle */
.theme-toggle:hover {
    transform: rotate(30deg);

}

/* Dark Theme Styles */
body.dark-theme {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    color: #ecf0f1;

}

/* Targets the dark theme elements */
body.dark-theme h1 {
    color: white;
}

body.dark-theme .bio,
body.dark-theme .link-card {
    background: #2c3e50;
    color: #ecf0f1;
}

body.dark-theme .link-url {
    color: #bdc3c7;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media (max-width: 600px) {
    .container {
        padding: 15px;

    }

    .profile {
        width: 120px;
        height: 120px;
        font-size: 40px;
    }

    h1 {
        font-size: 1.8rem;
    }
}
