/* Global styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
}

/* Hero section */
.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero-bg {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.hero .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero .overlay h1 {
    font-size: 4rem;
    margin: 0;
}

.hero .overlay .tagline {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.buttons {
    margin-top: 20px;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: #0077cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 10px;
    transition: background 0.3s ease;
}

/* Logo in hero header */
.hero .logo {
  display: block;
  max-width: min(100%, 1200px); /* increased max width */
  width: 100%; /* use full width up to max-width */
  height: auto;
  margin: 0 auto 0.5rem;
}

.button:hover {
    background: #005fa3;
}

.button.github {
    background: #333;
    display: inline-flex;
    align-items: center;
}

.button.github:hover {
    background: #000;
}

.button.github .icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #fff;
}

/* Section layout */
.section {
    padding: 60px 20px;
}

.section .content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.section:nth-of-type(even) .content {
    flex-direction: row-reverse;
}

.section .text {
    flex: 1;
}

.section .image {
    flex: 1;
}

.section .image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #f0f0f0;
}

footer a {
    color: inherit;
}

/* Responsive design */
@media (max-width: 768px) {
    .section .content {
        flex-direction: column;
    }

    .hero .overlay {
        width: 90%;
    }

    .hero .overlay h1 {
        font-size: 2.5rem;
    }

    .hero .overlay .tagline {
        font-size: 1.2rem;
    }
}

