/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Define color variables */
:root {
    --primary-bg-color: #1a1a2e; /* Dark Blue */
    --secondary-bg-color: #16213e; /* Slightly lighter blue */
    --accent-color: #00f2ea; /* Bright turquoise */
    --text-color: #e0e0e0;
    --text-secondary-color: #a0a0a0;
    --card-bg-color: rgba(255, 255, 255, 0.05);
}

/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Avatar Styles */
.avatar-section {
    margin-bottom: 20px;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--accent-color), 0 0 40px #e94560; /* Additional color on hover */
}

/* About Me Styles */
.about-me h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.about-me p {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    line-height: 1.6;
    min-height: 70px; /* Reserve space for description to avoid layout shift */
}

/* Main Action Buttons Styles */
.main-actions {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

.action-button {
    background: linear-gradient(145deg, var(--accent-color), #00b8d4);
    color: var(--primary-bg-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 242, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 242, 234, 0.5);
}

/* Link Sections Styles */
.links-section {
    width: 100%;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 1.5s forwards;
    opacity: 0;
}

.links-section h2 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.link-item {
    background-color: var(--card-bg-color);
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.link-item:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 242, 234, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

/* Icon Styles inside Links */
.link-item .icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.link-item:hover .icon {
    transform: scale(1.2);
}

.link-item span {
    font-size: 1em;
    font-weight: 600;
}

/* Footer Styles */
footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.9em;
    color: var(--text-secondary-color);
    animation: fadeIn 1s ease-out 1.8s forwards;
    opacity: 0;
}

/* Responsive Styles for smaller screens */
@media (max-width: 480px) {
    .avatar {
        width: 120px;
        height: 120px;
    }
    .about-me h1 {
        font-size: 2em;
    }
    .about-me p {
        font-size: 1em;
    }
    .action-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .link-item .icon {
         font-size: 2em;
    }
}