/* Custom styles to enhance Tailwind */
.hero-section {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}
.shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.transition-custom {
    transition: all 0.3s ease-in-out;
}
.hover-shadow:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.text-link {
    color: #3498db;
    transition: color 0.3s ease;
}
.text-link:hover {
    color: #2980b9;
}
.bg-card {
    background-color: #ecf0f1;
}

/* Responsive Header */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.contact-form-bg {
    background-color: #f9f9f9; /* Very light gray */
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Contact Section Styles */
.contact-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
    border-top: 1px solid #edf2f7;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info i {
    color: #3498db;
    margin-right: 0.5rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: bold;
    color: #4a5568;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary:hover {
    color: #fff;
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Map Styles */
.map-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Footer Styles */
.footer {
    background-color: #2d3748;
    color: #fff;
    padding: 4rem 2rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-column {
        width: 30%;
        text-align: left;
    }
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block; /* Make links block-level */
    padding: 0.5em 0; /* Add some padding for better touch area */
}

.footer-column a:hover {
    color: #a0aec0;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #a0aec0;
}

.heart {
    color: #e53e3e; /* Red color for the heart */
}

/* New Footer Styles */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

.footer-section {
    flex: 1 1 300px;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section ul {
    color: #cbd5e0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #a0aec0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* About Me Section Styles */
.about-content {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.about-text {
    flex: 2;
    padding-right: 2rem;
}

.about-image {
    flex: 1.3;
    text-align: right;
}

.about-subbox {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 0.45rem;
    right: 1rem;
    z-index: 20;
}

@media only screen and (max-width: 1024px) {
	.dark-mode-toggle {
		position: fixed;
		top: auto;
		bottom: 0.45rem;
		right: 1rem;
		z-index: 20;
	}
}

.dark-mode-toggle button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark-mode-toggle button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a202c;
    color: #edf2f7;
}

body.dark-mode .text-gray-800 {
    color: #edf2f7;
}

body.dark-mode .text-gray-700 {
    color: #cbd5e0;
}

body.dark-mode .contact-section {
    background-color: #2d3748;
}

body.dark-mode .shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.dark-mode .form-control {
    background-color: #4a5568;
    color: #edf2f7;
    border-color: #718096;
}

body.dark-mode .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

body.dark-mode .contact-form-bg {
    background-color: #4a5568;
}

body.dark-mode .footer {
    background-color: #1a202c;
}

body.dark-mode .about-subbox {
    background-color: #4a5568;
    color: #edf2f7;
}

body.dark-mode .text-link {
    color: #90cdf4;
}

body.dark-mode .text-link:hover {
    color: #63b3ed;
}

/* Fix Dark Mode for Core Skills Section */
body.dark-mode .bg-gray-50 {
    background-color: #4a5568 !important;
    color: #edf2f7 !important;
}

body.dark-mode #skills .text-gray-800 {
    color: #edf2f7;
}

body.dark-mode #skills .text-gray-700 {
    color: #cbd5e0;
}

body.dark-mode .bg-white {
    background-color: #2d3748 !important;
}

.hero-text{
    color: #3498db;
}

body.dark-mode .nav-link {
    color: white;
}

body.dark-mode .map-container iframe {
    filter: invert(100%);
}
