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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Common styles for all sections */
section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 40px 20px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 700;
}

/* Home section */
#home h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

#home h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #3498db;
    margin-bottom: 20px;
}

#home .intro {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #3498db;
}

#home p {
    margin-bottom: 15px;
}

#home a {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

#home a:hover {
    color: #2980b9;
}

/* Home section CTA buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary.view-experience {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-primary.view-experience:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: #3498db;
    border-color: #3498db;
}

.btn-secondary:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary.submit-form {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary.submit-form:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Profile picture and layout styles */
.profile-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #3498db;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-left: 20px;
    order: 2; /* This moves the profile picture to the end of the flex container */
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content {
    flex-grow: 1;
    padding-right: 20px;
    order: 1; /* This ensures the content stays on the left */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .profile-picture {
        margin-left: 0;
        margin-bottom: 20px;
        order: 1; /* Reset order for mobile view */
    }

    .profile-content {
        padding-right: 0;
        text-align: center;
        order: 2; /* Reset order for mobile view */
    }
}

@media (max-width: 480px) {
    .profile-picture {
        width: 120px;
        height: 120px;
    }
}

/* Contact section */
#contact {
    background-color: #f8f9fa;
}

#contact h2 {
    text-align: center;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #34495e;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

#formMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#formMessage.success {
    background-color: #2ecc71;
    color: white;
}

#formMessage.error {
    background-color: #e74c3c;
    color: white;
}

.hidden {
    display: none;
}

/* Experience section */
#experience {
    background: linear-gradient(to right, #4a90e2, #5ca0f2); /* A gradient from darker to lighter blue */
    color: white; /* White text for contrast */
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

#experience h2 {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* A , complementing the blue background */
}

.linkedin-icon {
    margin-left: 10px;
    font-size: 24px;
    color: #0077b5;
    transition: color 0.3s ease;
}

.linkedin-icon:hover {
    color: #00a0dc;
}

.experience-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.experience-item h3 {
    color: #3498db;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.experience-item p {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.experience-item ul {
    padding-left: 20px;
}

.experience-item li {
    margin-bottom: 5px;
    color: #34495e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 30px 15px;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home h2, section h2 {
        font-size: 1.8rem;
    }

    #home .intro {
        font-size: 1.1rem;
    }

    .experience-item h3 {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    #home h1 {
        font-size: 2rem;
    }

    #home h2, section h2 {
        font-size: 1.5rem;
    }

    #home .intro {
        font-size: 1rem;
    }

    .experience-item h3 {
        font-size: 1.2rem;
    }
}

/* Footer styles */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.social-icons {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 36px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #4facfe;
    transform: scale(1.1);
}

.copyright {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .social-icons a {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .social-icons {
        gap: 20px;
    }

    .social-icons a {
        font-size: 24px;
    }
}

.icon-links {
    display: none;
}

.home-section {
    position: relative;
    background-image: url('./coffee-code.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 50px 0;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Darker overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    z-index: 1;
}

.home-section > * {
    position: relative;
    z-index: 2;
}

.profile-container {
    background-color: transparent;
    border-radius: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-content {
    max-width: 500px; /* Limit width on larger screens */
    text-align: left;
}

/* Adjust text shadow for better readability */
.home-section h1,
.home-section h2,
.home-section p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Adjust link colors for better visibility */
.home-section a {
    color: #4facfe;
}

.home-section a:hover {
    color: #00f2fe;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-section::before {
        background-color: rgba(0, 0, 0, 0.5); /* Even darker overlay for small screens */
    }

    .profile-content {
        max-width: 100%; /* Full width on small screens */
    }
}

/* Tab styles */
.tab-container {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px;
    margin-top: 20px;
}

.tab {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tab:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab i {
    margin-right: 8px;
    font-size: 18px;
}

.tab span {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
        align-items: center;
    }

    .tab {
        margin-bottom: 10px;
    }
}