/* GENERAL PAGE STYLE */

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f4f4f4;
}
/* MAIN CONTENT AREA */

main {
max-width: 900px;
margin: auto;
background: white;
padding: 30px;
}

/* HEADER */

header {
text-align: center;
background-color: #444;
color: white;
padding: 25px;
}

/* NAVIGATION BAR */

nav {
text-align: center;
background-color: #333;
padding: 12px;
position: sticky;
top: 0;
margin-bottom: 25px;
}

nav ul {
list-style-type: none;
padding: 0;
}

nav li {
display: inline;
margin: 0 15px;
}

nav a {
color: white;
text-decoration: none;
font-weight: bold;
}

nav a:hover {
color: #ffd700;transition: 0.3s;
}

/* PAGE HEADINGS */

h1 {
text-align: center;
margin-bottom: 30px;
}

/* PROFILE CARD (HOME PAGE) */

.profile-card {
text-align: center;
padding: 20px;
border: 1px solid #ddd;
border-radius: 10px;
max-width: 500px;
margin: 20px auto;
box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

.profile-card img {
border-radius: 50%;
margin-bottom: 15px;
}

/* ABOUT PAGE LAYOUT */

.about-container {
display: flex;
gap: 30px;
align-items: flex-start;
margin-bottom: 40px;
}

.about-image img {
border-radius: 10px;
box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
}

.about-image img:hover {
transform: scale(1.05);
}

.about-image img {
    max-width: 100%;
    height: auto; 
    display: block;
}

.about-text {
line-height: 1.6;
}

/* GENERAL IMAGE CENTERING */

img {
display: block;
margin: auto;
}

/* UTILITY CLASS */

.center-text {
text-align: center;
}

/* FOOTER */

footer {
text-align: center;
margin-top: 40px;
font-size: 14px;
color: #777;
}
.about-container:nth-child(even) {
    flex-direction: row-reverse;
}
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: #555;
    margin-top: -10px;
}

.hero-text {
    margin-top: 20px;
    font-size: 18px;
}
/* MOBILE RESPONSIVE DESIGN */

@media (max-width: 768px) {

main {
    padding: 20px;
}

.about-container {
    flex-direction: column;
    text-align: center;
}

nav li {
    display: block;
    margin: 10px 0;
}

}
/* PHOTO GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}
.gallery a {
    display: block;
}

.gallery a img {
    width: 100%;
}

.contact-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.contact-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #ddd;
    z-index: -1;
}

.contact-divider span {
    background: white;
    padding: 0 15px;
    color: #777;
    font-weight: bold;
    font-size: 14px;
}

.direct-email {
    color: #cc0000;
    font-weight: 600;
    text-decoration: none;
}

.direct-email:hover {
    text-decoration: underline;
}