@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4a4e69;
    --secondary-color: #9a8c98;
    --accent-color: #c9ada7;
    --background-color: #ffffff;
    --text-color: #22223b;
    --card-bg-color: #f8f9fa;
    --card-border-color: #e9ecef;
    --text-color-logo-blue: #448CFF;
    --text-color-logo-yellow: #FEC000;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-content {
    flex: 1;
    padding-left: 50px;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-color-logo-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color-logo-blue);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-color-logo-blue);
    color: var(--background-color);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--text-color-logo-blue);
    transform: translateY(-2px);
}

.highlight {
    background-color: var(--text-color-logo-yellow);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.buy-coffee {
    margin-top: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.buy-coffee img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    margin-top: 20px;
}

.buy-coffee img:hover {
    transform: translateY(-2px);
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color-logo-blue);
    margin-bottom: 40px;
}

.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: var(--text-color-logo-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--text-color-logo-blue);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left::after {
    right: -17px;
}

.timeline-item.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--text-color-logo-blue);
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .timeline-line {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 15px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    /* Center the newsletter form */
    .newsletter-form {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Adjust form-group for vertical stacking */
    .newsletter-form .form-group {
        flex-direction: column;
        border-radius: 20px;
    }

    /* Make input and button full width */
    .newsletter-form input[type="email"] {
        width: 100%;
        margin-bottom: 5px;
    }

    .newsletter-form button {
        width: 100%;
        margin-left: 0;
    }

    /* Center CTA elements */
    .cta {
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .timeline-content {
        padding: 15px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: row;
    }
    .form-group input[type="email"],
    .form-group button {
        width: 100%;
    }
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.skill-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background-color: var(--text-color-logo-yellow);
}

.newsletter-form {
    max-width: 500px;
}

.form-group {
    position: relative;
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.form-group:focus-within {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.form-group input[type="email"] {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    background-color: var(--card-bg-color);
}

.form-group input::placeholder {
    color: var(--secondary-color);
}

.form-group button {
    border: none;
    background-color: var(--text-color-logo-blue);
    color: var(--background-color);
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.form-group button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--background-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.response {
    margin-top: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.response.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
}

.info-message {
    background-color: #cce5ff;
    color: #004085;
}

.cta {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    max-width: 500px;
}

#typed-name {
    position: relative;
    color: var(--text-color-logo-blue);
    font-weight: 600;
}

#typed-name::after {
    content: '';
    right: -8px;
    width: 1px;
    height: 100%;
    animation: blink 0.7s infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.animate-text, .animate-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-icons a {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.animate-icons a:nth-child(1) { animation-delay: 0.1s; }
.animate-icons a:nth-child(2) { animation-delay: 0.2s; }
.animate-icons a:nth-child(3) { animation-delay: 0.3s; }
.animate-icons a:nth-child(4) { animation-delay: 0.4s; }

/* Scroll bar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-color-logo-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

@media screen and (max-width: 480px) {
    .form-group {
        flex-direction: row;
    }
    .form-group input[type="email"],
    .form-group button {
        width: 100%;
    }
}
