/* Reset all default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    background-color: #141619;
    font-family: Arial, sans-serif;
    color: #c5c7db;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-y: auto; /* Set to auto to ensure scrolling works if content overflows */
}

/* Main container for layout */
.main-container {
    text-align: center;
    padding: 30px;
    width: 600px;
    background-color: rgb(255, 255, 255);
    margin: 0 auto;
    border-radius: 10px; /* Added for smooth edges */
    overflow-y:scroll;
}

/* Profile section styling */
.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

/* Profile picture styling */
.profile-pic {
    width: 200px;
    height: 220px;
    border: 2 px solid blue;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out; /* Added animation */
}

/* Profile picture hover effect */
.profile-pic:hover {
    transform: scale(1.1); /* Slight zoom effect */
}

h1 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 1rem; /* Added margin to give space below name */
}

/* Cards container for vertical layout */
.cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card styling */
.card {
    background-color: rgb(26, 20, 40);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: left;
}

/* Hover effect for cards */
.card:hover {
    transform: scale(1.05);
}

h2 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Links styling */
.card a {
    display: block;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    color: rgb(0, 0, 0);
    transition: background-color 0.3s ease;
}

/* Specific link styles and hover effects */
.leetcode {
    background-color: #FFA116;
}
.leetcode:hover {
    background-color: #7a5413;
}

.gfg {
    background-color: #2F8D46;
}
.gfg:hover {
    background-color: #0b4c1c;
}

.hackerrank {
    background-color: #1BA94C;
}
.hackerrank:hover {
    background-color: #13602b;
}

.codingninjas {
    background-color: #FF6C37;
}
.codingninjas:hover {
    background-color: #81351c;
}
.codechef {
    background-color: #118273;
}
.codechef:hover {
    background-color: #46929e;
}

.linkedin {
    background-color: #0077B5;
}
.linkedin:hover {
    background-color: #16475e;
}

.github {
    background-color: #333;
}
.github:hover {
    background-color: #442f2f;
}

.twitter {
    background-color: #1DA1F2;
}
.twitter:hover {
    background-color: #134c68;
}

.email {
    background-color: #EA4335;
}
.email:hover {
    background-color: #7d221b;
}

.resume {
    background-color: #0A21C0;
}
.resume:hover {
    background-color: #141e5c;
}

/* Footer styling */
footer {
    margin-top: 2rem;
}

footer p {
    color: #000000;
    font-size: 0.9rem;
}

/* Ensure content fits within the screen and is scrollable */
html, body {
    height: 100%;
}
