/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Section Separator */
.section-divider {
    border: 0;
    height: 2px;
    background-color: #e0e0e0;
    margin: 5px auto; /* Reduced margin */
    max-width: 90%;
}
/* Language Selector */
.language-selector-container {
    text-align: right;
    padding: 10px 5%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.language-selector {
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* --- Hero Section Styles --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-details h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: #2c3e50;
}

.contact-details p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.contact-links {
    margin-top: 1rem;
}

.contact-links a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #2980b9;
}

/* --- About Section Styles --- */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    margin: 0 auto;
    text-align: center;
}

.about-content {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%; /* Ensure content takes full width of parent */
}

.about-content h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    text-align: left;
}

/* --- Index & Resume Styles --- */
.index-resume-section {
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    margin: 0 auto;
}

.content-container {
    display: flex;
    gap: 2rem;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.index-column,
.resume-column {
    flex: 1;
}

.index-column h2,
.resume-column h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
    text-align: center; /* Center the heading */
}

.index-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-column li {
    margin-bottom: 1rem;
}

.index-column a {
    text-decoration: none;
    color: #3498db;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.index-column a:hover {
    color: #2980b9;
}

.resume-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the button */
}

.google-drive-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; /* Square button size */
    height: 80px; /* Square button size */
    background-color: #3498db; /* A blue color similar to Google Drive's */
    border-radius: 8px;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* Remove underline */
    color: #fff; /* SVG color inherited */
    margin-top: 1.5rem; /* Add some space below the heading */
}

.google-drive-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: translateY(-5px); /* Slight lift on hover */
}

.google-drive-button svg {
    width: 48px;
    height: 48px;
}

/* --- Tools Section Styles --- */
.tools-section {
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    margin: 0 auto;
}

.tools-container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tools-container h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 1.5rem;
}

.tab-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #7f8c8d;
    transition:
        color 0.3s ease,
        border-bottom 0.3s ease;
}

.tab-button:hover {
    color: #34495e;
}

.tab-button.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

.tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tool-list li {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
}

/* --- Experience Cards Styles --- */
.experience-section {
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    margin: 0 auto;
}

.experience-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.card li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.card a {
    display: inline-block;
    text-decoration: none;
    background-color: #34495e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #2c3e50;
}

/* --- Detailed Experience Styles --- */
.detailed-experience-section {
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    margin: 0 auto;
}

.detailed-section {
    background-color: #fff;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.detailed-section h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.detailed-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.back-button {
    display: inline-block;
    text-decoration: none;
    background-color: #3498db;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #2980b9;
}

/* --- Contact Form Styles --- */
.contact-section {
    padding: 5px 2rem; /* Reduced vertical padding */
    max-width: 900px; /* Consistent width */
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-message {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-message.error {
    background-color: #fce4e4;
    color: #c62828;
}

.contact-form-container {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* --- Footer Styles --- */
.footer-section {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #fff;
    margin-top: 5px; /* Reduced margin */
}

.footer-section p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 5px 1rem;
    }
    .contact-details h1 {
        font-size: 2rem;
    }
    .contact-details p {
        font-size: 1rem;
    }
    .contact-links a {
        margin: 0 0.5rem;
    }
    .about-section {
        padding: 5px 1rem;
    }
    .about-content {
        padding: 1.5rem;
    }
    .about-content h2 {
        font-size: 1.8rem;
    }
    .about-content p {
        font-size: 1rem;
    }
    .content-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .index-resume-section {
        padding: 5px 1rem;
    }
    .resume-column a {
        width: 100%;
    }
    .tools-section {
        padding: 5px 1rem;
    }
    .tools-container {
        padding: 1.5rem;
    }
    .tab-buttons {
        flex-wrap: wrap;
    }
    .tab-button {
        padding: 0.75rem 1rem;
    }
    .experience-section {
        padding: 5px 1rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .contact-section {
        padding: 5px 1rem;
    }
    .contact-form-container {
        padding: 1.5rem;
    }
    .footer-section {
        margin-top: 5px;
    }
}
