/* Ensure full-page height for each section */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'San Francisco', sans-serif;
    display: flex;
    flex-direction: column;
}

/* First Section (Homepage with Header) */
.first-section {
    background: linear-gradient(to bottom right, #FF6F00, #FFFFFF);
    display: flex;
    justify-content: center;  /* Centers content vertically */
    align-items: center;      /* Centers content vertically */
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    padding-left: 10px; /* Added padding for the left */
    padding-right: 10px;
    box-sizing: border-box;
}

header {
    position: absolute;
    top: 5px;  /* Adjusted so the header is 5px from the top */
    width: 100%;
    background: transparent;
    padding: 10px 0; /* Reduced padding */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.header-title {
    font-size: 28px;
    font-weight: normal;
    color: white;
    text-decoration: none;
    padding-left: 0;
}

.header-links {
    display: flex;
    gap: 20px;
    margin-right: 20px;
    position: absolute;
    right: 20px;
}

.header-links a {
    font-size: 18px;
    color: white;
    text-decoration: none;
    position: relative;
}

.header-links a:hover {
    text-decoration: none;
}

.header-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 4px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-links a:hover::after {
    transform: scaleX(1);
}

/* Title Section */
.title-section {
    text-align: left;
    color: white;
    max-width: 600px;
    padding-left: 10px; /* Padding on left side */
    position: absolute;
    top: 50%; /* Vertically center */
    left: 0; /* Stick to the left side */
    transform: translateY(-50%); /* Perfectly align to the middle */
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Align to the left */
}

.first-section h1 {
    font-size: 72px;
    font-weight: normal;
    margin-bottom: 20px;
}

.description {
    font-size: 24px;
    margin-bottom: 40px;
}

.buttons {
    display: flex;
    gap: 20px; /* Placed side by side */
}

.download-btn, .github-btn {
    background-color: #FF6F00;
    padding: 10px 20px; /* Adjusted padding to fit the text correctly */
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    text-align: center;
    width: auto;  /* Ensures button size is based on text */
}

.download-btn:hover, .github-btn:hover {
    background-color: #e65c00;
    text-decoration: none;
}

/* Add an image on the right */
.right-image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.right-image img {
    max-width: 400px; /* Adjust image size */
    border-radius: 10px;
}

/* Second Section (Preview ProxySphere) */
.second-section {
    background-color: #333333;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px 20px; /* Added padding for the top and bottom */
}

.preview-title {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 40px;
}

.second-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.grid-item-left {
    text-align: left;
}

.grid-item-right {
    text-align: right;
}

.preview-text {
    font-size: 24px;
    text-align: center;
    color: white;
}

.preview-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: #FF6F00;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    width: 100%;
}

footer p {
    margin: 0;
}

/* Make sure footer stays at the bottom */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

footer {
    margin-top: auto; /* Pushes footer to the bottom */
}

/* Media Queries for Responsive Layout */
@media (prefers-color-scheme: dark) {
    .first-section {
        background: linear-gradient(to bottom right, #FF6F00, #333333); /* Dark Mode Gradient */
    }

    .second-section {
        background-color: #333333;
        color: white;
    }

    .preview-text {
        color: white;
    }

    footer {
        background-color: #e65c00;
    }
}
