/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');

/* === Global Styles === */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* === Backgrounds for Different Pages === */
body.index,
body.work {
    background-color: bisque;
}

body.index {
    background-image: url('../img/trappers lake.svg');
}

body.espanol {
    background-image: url('../img/monumentvalley.svg');
}

body.contact {
    background-image: url('../img/sma.svg');
}

body.index,
body.espanol,
body.contact {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    color: whitesmoke;
}

/* === Overlays === */
body.index::before,
body.espanol::before,
body.contact::before {
    content: '';
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: -1;
}

body.contact::before {
    background-color: rgba(0, 0, 0, 0.3);
}

body.contact::after {
    content: '';
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: inherit;
    background-attachment: fixed;
    filter: contrast(150%) brightness(110%);
    z-index: -2;
}

/* === Typography === */
h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #e6dede;
}

.container h1.display-4 {
    font-size: 3.5rem;
    color: black;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: none;
}

/* === Layout Adjustments === */
.row {
    margin-bottom: 20px;
}

.col-md-8 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === Contact Form === */
.contact-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
    padding: 10px 20px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #45a049;
}

/* === Modal Dialog === */
.modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
    .modal-dialog {
        min-height: calc(100% - 3.5rem);
    }
}

/* === Status Modal === */
#statusModal .modal-content {
    border-left: 5px solid;
    background-color: #FFE4C4;
}

#statusModal .modal-header,
#statusModal .modal-footer {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.25rem;
}

#statusModal.success .modal-content { border-left-color: #28a745; }
#statusModal.error .modal-content { border-left-color: #dc3545; }
#statusModal.sending .modal-content { border-left-color: #17a2b8; }

.status-message {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.sending {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* === Work Page Customization === */
.work-container {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

.project-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.project-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.project-description {
    font-style: italic;
    margin-top: 5px;
    color: #555;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* === Contact Buttons === */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Shared Button Styles */
.contact-buttons a,
.contact-buttons button {
    width: 180px;
    height: 45px;
    font-size: 16px;
    padding: 10px 0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Email Button */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Container to keep buttons inline */
.social-buttons {
    display: flex;
    gap: 10px; /* spacing between buttons */
    flex-wrap: wrap; /* optional: allow wrap on smaller screens */
}

/* Reuse the previous styles */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

/* LinkedIn Button */
.linkedin-btn {
    background-color: #0077b5;
}
.linkedin-btn:hover {
    background-color: #005885;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* GitHub Button */
.github-btn {
    background-color: #333;
}
.github-btn:hover {
    background-color: #24292e;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Icons */
.social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

/* Hover Icon Effects */
.linkedin-btn:hover .social-icon {
    transform: rotate(5deg);
}
.github-btn:hover .social-icon {
    transform: rotate(-5deg);
}

/* Vaudeville Frame for .card.mb-4 */
.card.mb-4 {
  border: 8px double #8b4513;
  background: linear-gradient(to bottom right, #f8f1e4, #e5d3b3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 1rem;
  position: relative;
  font-family: 'Georgia', serif;
}

/* Optional: Decorative corner flourishes (if image is provided) */
.card.mb-4::before,
.card.mb-4::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background-image: url('../img/corner-flourish.png'); /* Optional vintage graphic */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.card.mb-4::before {
  top: -10px;
  left: -10px;
}

.card.mb-4::after {
  bottom: -10px;
  right: -10px;
}

/* Typography inside the vaudeville card */
.card.mb-4 .card-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #4b2e1e;
  text-shadow: 1px 1px 1px #fff;
  border-bottom: 2px dashed #8b4513;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.card.mb-4 .card-text {
  color: #3a2c1a;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Image styling */
.card.mb-4 img {
  border: 3px solid #8b4513;
  border-radius: 10px;
  margin-top: 1rem;
  max-width: 100%;
}


/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .contact-form {
        max-width: 90%;
    }

    body.espanol {
        background-size: contain;
    }
}
