/* Main styles for the website */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: #2c3e50;
}

header {
    background: #35424a;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

h1 {
    margin: 0;
    margin-bottom: .5em;
    font-size: 2.5em;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.split-container {
    display: flex;
    height: calc(100vh - 100px); /* Subtract navbar height */
    padding: 0 4rem;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

/* Center the split container for contact page */
.split-container {
    justify-content: center;
    align-items: center;
}

.photo-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 8px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(255, 255, 255, 1);
}

.content-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #34495e;
    font-weight: 500;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #576574;
    max-width: 600px;
}

/* Animation for content */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section > * {
    animation: fadeIn 0.8s ease-out forwards;
}

.content-section h1 { animation-delay: 0.2s; }
.content-section h2 { animation-delay: 0.4s; }
.content-section p { animation-delay: 0.6s; }

/* Responsive layout */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        /* height: 100vh; */
    }
    
    .photo-section,
    .content-section {
        flex: none;
    }
    
    .content-section h1 {
        font-size: 2.5rem;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .profile-image {
        max-height: 50vh;
    }
}

/* Responsive tweaks for smaller screens (phones) */
@media (max-width: 768px) {
  .split-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    height: auto;
  }

  .photo-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .profile-image {
    max-height: 15em;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .content-section {
    width: 100%;
    text-align: center;
    padding: 0 1rem;
  }

  .content-section h1 {
    font-size: 1.6rem;
    margin: 0.5rem 0;
  }

  .content-section h2 {
    font-size: 1rem;
    margin: 0.25rem 0;
  }

  .content-section p {
    font-size: 0.95rem;
  }
}

/* Contact Page Styles */
.contact-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 8px rgba(255, 255, 255, 0.9);
}

.contact-form-section {
    flex: 1;
    padding: 2rem;
}

.contact-form {
    max-width: 500px;
    margin-top: 2rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-form button {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Info Styles */
.contact-info-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.contact-details {
    margin-top: 2rem;
}

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

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-item h2 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p, 
.contact-item a {
    color: #34495e;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: #3498db;
}

/* Experience Section Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.experience-item {
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experience-item h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.experience-item .date {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style-type: none;
    padding-left: 0;
}

.experience-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-form {
        width: 100%;
    }
    
    .contact-image-section {
        display: none; /* Hide image on mobile */
    }
    
    .contact-form-section {
        padding: 1rem;
    }
    
    .contact-info-section {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}