/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #0056b3;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0056b3, #66b3ff);
    opacity: 0.5;
    animation: background-shift 5s infinite alternate;
}

@keyframes background-shift {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50px);
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: slideInDown 1s ease-in-out;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    animation: slideInUp 1s ease-in-out;
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 0.5rem;
}

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

ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

ul li:last-child {
    border-bottom: none;
}

ul li strong {
    font-weight: bold;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003366;
}

/* Section Content Layout */
.section-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-direction: column;
}

.text-col {
    flex: 2;
}

.img-col {
    flex: 1;
    order: -1;
    margin-bottom: 1rem;
}

.section-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
}

.section-img:hover {
    transform: scale(1.05);
}

/* Contact Section Specifics */
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.contact-info {
    flex: 2;
}

.profile-img-contact {
    flex: 1;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
    /* Tablet and larger */
    .section-content {
        flex-direction: row;
    }

    .contact-wrapper {
        flex-direction: row;
    }

    .img-col {
        order: initial;
        margin-bottom: 0;
    }

    .text-col {
        flex: 2;
    }

    .img-col {
        flex: 1;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Touch Interaction - Image Movement */
.section-img {
    transition: transform 0.2s ease-in-out; /* Smooth touch effect */
}

.section-img:active {
    transform: scale(0.95); /* Slight scale down on touch */
}

/* Text Highlight on Touch */
p::selection,
li::selection,
h2::selection,
h1::selection {
    background-color: #0056b3; /* Highlight color */
    color: #fff; /* Highlighted text color */
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
    body {
        font-size: 1rem; /* Adjust base font size */
    }

    h1 {
        font-size: 2rem; /* Adjust heading size */
    }

    h2 {
        font-size: 1.5rem; /* Adjust subheading size */
    }

    .container {
        padding: 10px; /* Reduce padding */
    }

    section {
        padding: 1rem; /* Reduce section padding */
    }

    ul {
        padding-left: 1.2rem; /* Add padding to lists */
    }
}