@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

nav {
    background-color: #161b22;
    padding: 15px 0;
    text-align: center;
    border-bottom: 2px solid #00aaff;
}

nav a {
    color: #e6edf3;
    text-decoration: none;
    padding: 12px 25px;
    margin: 0 5px;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s, background-color 0.3s;
}

nav a:hover {
    background-color: #00aaff;
    color: #0d1117;
    border-radius: 8px;
}

main {
    max-width: 900px;
    background-color: #161b22;
    margin: 50px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
    transition: box-shadow 0.4s ease;
}

main:hover {
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.3);
}

/* HEADINGS */
h1, h2 {
    color: #00aaff;
    text-align: center;
    margin-bottom: 20px;
}

/* TEXT */
p, ul {
    text-align: center;
    line-height: 1.7;
    font-size: 16px;
}

/* IMAGES */
img {
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 10px;
    background-color: #161b22;
    color: #8b949e;
    border-top: 2px solid #00aaff;
    margin-top: 50px;
    font-size: 14px;
}

/*ANIMATION */
main, nav, footer {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.typing {
    border-right: 3px solid #00aaff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(22, end), blink 0.7s infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #00aaff; }
}

/* GALLERY GRID */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

/* PROFILE PAGE DESIGN */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #161b22;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
    max-width: 900px;
    margin-top: 40px;
    gap: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.3);
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    margin: auto;
}

.profile-info {
    flex: 1;
    color: #e6edf3;
}

.profile-info h1 {
    color: #00aaff;
    margin-bottom: 5px;
}

.profile-info h2 {
    color: #8b949e;
    font-weight: 400;
    margin-bottom: 15px;
}

.profile-info ul {
    list-style: none;
    padding: 0;
    line-height: 1.8;
}

.profile-info h3 {
    margin-top: 25px;
    margin-bottom: 8px;
    color: #00aaff;
    font-weight: 600;
    border-bottom: 2px solid #00aaff;
    padding-bottom: 3px;
    width: fit-content;
    margin-left: 190px; 
}

/* FIX BASIC INFORMATION ALIGNMENT */
.profile-info h3 {
    margin-top: 25px;
    margin-bottom: 8px;
    color: #00aaff;
    font-weight: 600;
    border-bottom: 2px solid #00aaff;
    padding-bottom: 3px;
    width: fit-content;
}
/* HOBBIES PAGE DESIGN */
.hobby-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.hobby-card {
    background-color: #161b22;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
    border: 2px solid #00aaff;
}

.hobby-card .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.hobby-card:hover .icon {
    transform: scale(1.1);
}

.hobby-card h3 {
    color: #00aaff;
    margin-bottom: 8px;
}

.hobby-card p {
    color: #c9d1d9;
    font-size: 15px;
    line-height: 1.6;
}
