/* === Base Styles & Animations === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { 
        transform: translateY(-30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* === Navigation Bar === */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #1e293b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.8s ease-out forwards;
}

nav img {
    height: 50px;
    width: auto;
    animation: slideInDown 0.6s ease-out 0.2s both;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: slideInDown 0.6s ease-out 0.3s both;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #60a5fa;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* === Main Content === */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 5%;
    flex: 1;
    text-align: center;
}

.head-text {
    margin-bottom: 2rem;
    animation: slideInDown 0.8s ease-out 0.4s both;
}

.h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-text {
    max-width: 600px;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.p1 {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.p2 {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-image {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: scaleIn 0.8s ease-out 0.6s both;
}

.instagram, .github {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 10px;
}

.instagram:hover, .github:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(96, 165, 250, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instagram:hover {
    background-color: rgba(225, 48, 108, 0.1);
}

.github:hover {
    background-color: rgba(36, 41, 46, 0.1);
}

/* === Footer === */
.footer {
    width: 100%;
    padding: 1.5rem 0;
    background-color: #1e293b;
    color: #f8fafc;
    text-align: center;
    margin-top: auto;
    animation: fadeIn 1s ease-out 0.8s both;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem 1rem;
    }
    
    .h1 {
        font-size: 2.5rem;
    }
    
    .content-image {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .h1 {
        font-size: 2rem;
    }
    
    .p1 {
        font-size: 1.1rem;
    }
    
    .p2 {
        font-size: 1rem;
    }
    
    .instagram, .github {
        width: 50px;
        height: 50px;
    }
}

.clickable-image {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clickable-image img {
    width: auto;
    height: 50px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.clickable-image:hover {
    transform: translateY(-5px);
}

.clickable-image:hover img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.clickable-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-image:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .h1 {
        font-size: 2.5rem;
    }
}
