/* General styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navigation Bar */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Header */
.image-container {
    background-image: url('photo1.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    color: white;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 20%; /* For left alignment */
    transform: translateY(-50%);
    text-align: left; /* Align text to the left */
}

.name {
    font-size: 64px; /* Font size for Tom Bradbury */
    margin: 0; /* Remove default margin */
}

.title {
    font-size: 25px; /* Font size for Software Engineer | Problem Solver */
    margin: 0;
    margin-top: -2px; /* Adjust to move up */
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
    width: 33px;
    height: 33px;
}

.social-icons img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Smooth transition for the pulsing effect */
    will-change: transform; /* Improve performance for transform animations */
}

/* Hover Effect */
.social-icons a:hover img {
    transform: scale(1.2); /* Scale up by 20% on hover to create a pulse effect */
    position: relative; /* Ensure icons stay in place during the scaling */
    z-index: 1; /* Bring the icon to the front */
}

/* Sections */
section {
    padding: 60px;
    text-align: center;
}

#projects {
    background-color: #f4f4f4;
}

#skills {
    background-color: #e2e2e2;
}

#contact {
    background-color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .overlay-content {
        left: 10%; /* Adjust left position for smaller screens */
    }

    .name {
        font-size: 48px; /* Smaller font size for mobile */
    }

    .title {
        font-size: 24px; /* Smaller font size for mobile */
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Enhance section headings */
section h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 2.5em;
    color: #333;
}

/* Contact form styling (if you add one) */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="text"], input[type="email"], textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="submit"] {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

