/* Modern Portfolio Design */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #f1f3f5, #e9ecef);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    animation: fadeIn 1s ease-out;
}

.contact-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-info a:hover::after {
    width: 100%;
}

.section {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-out;
    animation-fill-mode: backwards;
}

.section:nth-child(1) { animation-delay: 0.3s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.5s; }
.section:nth-child(4) { animation-delay: 0.6s; }
.section:nth-child(5) { animation-delay: 0.7s; }
.section:nth-child(6) { animation-delay: 0.8s; }

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.section:hover h2::after {
    width: 100%;
}

.section hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease-out;
}

.section p {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.section p:hover {
    transform: translateX(10px);
}

.section ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.section li {
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.section li:hover {
    transform: translateX(10px);
}

.section strong {
    color: var(--primary-color);
}

/* Project links styling */
.section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.section a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.section a:hover::after {
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 1rem;
    }
}

/* Add smooth transitions */
.section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Add animation to project links */
.section a[href*="github.com"] {
    animation: pulse 2s infinite;
}

/* Add hover effect to contact icons */
.contact-info p {
    transition: transform 0.3s ease;
}

.contact-info p:hover {
    transform: scale(1.02);
}

/* Download Button Styles */
.download-section {
    text-align: center;
    margin: 3rem 0;
    animation: fadeIn 1s ease-out;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Add responsive styles for the download button */
@media (max-width: 768px) {
    .download-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}