/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fafafa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header/Logo */
.header {
    margin-bottom: 3rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-link:hover {
    color: #2c3e50;
}

.logo {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34495e;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Profile Section */
.profile-section {
    margin-bottom: 3rem;
    max-width: 600px;
}

.profile-image {
    margin-bottom: 1.5rem;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #34495e;
}

/* About Section */
.about-section {
    margin-bottom: 3rem;
    max-width: 600px;
}

.about-image {
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border: 2px solid #34495e;
    border-radius: 8px;
}

.about-content {
    text-align: left;
}

/* Contact Section */
.contact-section {
    margin-bottom: 3rem;
    max-width: 600px;
}

.contact-image {
    margin-bottom: 2rem;
}

.contact-image img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border: 2px solid #34495e;
    border-radius: 8px;
}

.contact-content {
    text-align: left;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #34495e;
    box-shadow: 0 2px 8px rgba(52, 73, 94, 0.1);
}

.contact-item i {
    color: #34495e;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    color: #5a6c7d;
    font-size: 1rem;
    font-weight: 500;
}

/* Work Section */
.work-section {
    margin-bottom: 3rem;
    max-width: 800px;
    width: 100%;
}

.work-content {
    text-align: left;
}

.map-container {
    margin: 1rem 0 0.5rem 0;
    width: 100%;
}

.project-image-container {
    margin: 2rem 0 0.5rem 0;
    width: 100%;
}

.project-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 2px solid #34495e;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.2);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #34495e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-content {
    text-align: center;
    color: #5a6c7d;
}

.placeholder-content i {
    font-size: 4rem;
    color: #34495e;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.placeholder-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 1rem;
}

.project-description {
    margin-top: 2rem;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.project-features li {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-features li:before {
    content: "•";
    color: #34495e;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.postcode-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #34495e;
}

.postcode-details h4 {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.postcode-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.postcode-list li {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.postcode-list li strong {
    color: #34495e;
    font-weight: 600;
}

/* Expandable Section */
.expandable-section {
    margin-top: 0.5rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

/* QGIS Project Section - Grey background for visual distinction */
.qgis-project-section {
    background: #f5f5f5;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qgis-project-section .expandable-heading {
    background: #e5e7eb;
    color: #374151;
    border-bottom: 1px solid #d1d5db;
}

.qgis-project-section .expandable-heading:hover {
    background: #d1d5db;
}

/* Expanded state - white background for heading */
.qgis-project-section .expandable-heading.expanded {
    background: white;
    color: #34495e;
    border-bottom: 1px solid #e5e7eb;
}

.qgis-project-section .expandable-heading.expanded:hover {
    background: #f8f9fa;
}

.qgis-project-section .expandable-content {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.expandable-heading {
    background: #f8f9fa;
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.expandable-heading:hover {
    background: #e9ecef;
}

.expandable-heading i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.expandable-content {
    padding: 1.5rem;
    background: white;
    display: none;
}

.expandable-content.show {
    display: block;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bio {
    font-size: 1.1rem;
    color: #5a6c7d;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
}

.link {
    color: #34495e;
    text-decoration: underline;
    font-weight: 500;
}

.link:hover {
    color: #2c3e50;
}

/* Navigation */
.navigation {
    margin-bottom: 3rem;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.button-row:last-child {
    margin-bottom: 0;
}

.nav-button {
    background: white;
    border: 2px solid #34495e;
    color: #5a6c7d;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.nav-button:hover,
.nav-button.active {
    background: #34495e;
    color: white;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: #34495e;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #34495e;
}

.social-icon:hover {
    color: #2c3e50;
    background: #34495e;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-heading {
        font-size: 2rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .button-row {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 200px;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .about-image img {
        max-width: 100%;
        height: 250px;
    }
    
    .map-placeholder {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .main-heading {
        font-size: 1.5rem;
    }
    
    .nav-button {
        width: 180px;
        padding: 0.6rem 1.2rem;
    }
    
    .about-image img {
        height: 200px;
    }
    
    .map-placeholder {
        height: 200px;
    }
}
