/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #ff5e00;
    background-color: #1a1a1a;
    /* Fallback */
    overflow-x: hidden;
    height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/background_space.png');
    background-size: auto;
    /* Use original image size */
    background-position: top left;
    background-repeat: repeat;
    z-index: -1;
}

/* Ensure background is "stacked" or dimmed if needed for text readability */
.background-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Slight overlay for contrast */
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    /* Center menu items */
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    background: rgba(20, 20, 20, 0.4);
    /* Lighter, translucent dark background */
    padding: 1rem 3rem;
    border-radius: 50px;
    /* Highly rounded corners (pill shape) */
    backdrop-filter: blur(8px);
    /* Stronger blur */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Subtle shadow instead of border */
}

.main-nav a {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ff5e00;
    /* Orange color from logo */
    opacity: 0.9;
    position: relative;
    padding: 0.5rem 0.5rem;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    color: #ff7b00;
    /* Slightly lighter orange on hover */
    text-shadow: 0 0 10px rgba(255, 94, 0, 0.5);
    /* Orange glow */
}



/* Active Indicator Effect */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff5e00;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    left: 0;
}

/* Main Content */
main {
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.page-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    scroll-snap-align: start;
    opacity: 0;
    /* Fade in effect */
    transition: opacity 0.8s ease-in-out;
    position: relative;
    /* Added for arrow positioning */
}

.page-section.active-section {
    opacity: 1;
}

/* Start Section */
.logo-container {
    margin-top: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    /* Added for absolute positioning of arrow */
    /* Offset for visual balance under menu */
}

.main-logo {
    max-width: 600px;
    width: 90%;
    height: auto;
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    /* Positioned inside the logo container or section */
    left: 50%;
    width: 40px;
    height: 40px;
    border-right: 10px solid rgba(0, 0, 0, 0.5);
    border-bottom: 10px solid rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) rotate(45deg);
    cursor: pointer;
    z-index: 10;
    transition: border-color 0.3s ease;
}

.scroll-arrow:hover {
    border-right-color: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.scroll-arrow.up {
    transform: translateX(-50%) rotate(225deg);
}

.scroll-arrow.top {
    top: 130px;
    /* Below the nav menu */
    bottom: auto;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 94, 0, 0.2);
    padding: 20px;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 94, 0, 0.6);
}

.placeholder-image {
    width: 100%;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Say Hi Section */
.contact-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 94, 0, 0.2);
    max-width: 600px;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.contact-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Increased specificity to ensure color applies */
.contact-container .contact-link {
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    color: #ff5e00 !important;
}

.contact-container .contact-link:hover {
    border-bottom-color: #ff5e00;
    color: #ff7b00 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .contact-container h2 {
        font-size: 2rem;
    }
}

/* Translation Note */
.info-note {
    color: #ffffff;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.7;
}

.brodtext-normal {
    color: #ffffff;
    font-style: normal;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    /* Made text lighter/thinner */
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 94, 0, 0.3);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff5e00;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-button {
    background: rgba(255, 94, 0, 0.2);
    color: #ff5e00;
    border: 1px solid #ff5e00;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
}

.form-button:hover {
    background: #ff5e00;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.4);
}

.form-message {
    margin-top: 15px;
    font-size: 1rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.form-message.success {
    color: #4caf50;
    /* Green for success */
}

.form-message.error {
    color: #f44336;
    /* Red for error */
}