html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html{
    box-sizing: border-box;
    font-family: 'open sans', sans-serif;
    
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(100deg, #1a1a1a 50%, #121212);
    color: #e0e0e0;
}

.footer-mountains {
    position: fixed;
    bottom: -1280px;
    width: 100%;
    height: 2000px; /* Adjust height as needed */       
    background: url('mountains.png') bottom center;
    background-size: cover;
    pointer-events: none; /* Ensure it doesn’t interfere with clicks above */      
    z-index: 0;
} 

/* Ensuring Content is Above the Mountains */
.main-content {
    position: relative;
    z-index: 1;
}

/* Navigation Bar */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    width: 100%;
    background-color: #1a1a1a;
    height: 75px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Name on the Left */
.nav-left h1 {
    color: #e0e0e0;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.nav-left {
    flex: 1; /* Ensures the name stays aligned left */
}

.nav-left a {
    text-decoration: none;
    color: inherit;
}

.nav-right {
    display: flex;
    gap: 30px; /* Keeps buttons evenly spaced */
    margin-left: auto; /* Pushes buttons to the right */
    margin-right: 65px; /* Adds a buffer from the edge */
}

.nav-right button {
    background-color: transparent;
    color: #e0e0e0;
    border: 2px solid #e0e0e0;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-right button:hover {
    background-color: #e0e0e0;
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    padding: 120px 50px;
    text-align: center;
	margin-top: 60px;
}

.main-content section {
    max-width: 800px;  /* Change size of main content*/
    margin: 0 auto;
    background: #1e1e1e;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 
        0px 4px 12px rgba(0, 0, 0, 0.5), /* Base shadow */
        0px 0px 20px 4px rgba(255, 255, 255, 0.8); /* Glowing effect */
    transition: box-shadow 0.3s ease-in-out;
}

.main-content section:hover {
    box-shadow: 
        0px 6px 15px rgba(0, 0, 0, 0.6), /* Stronger base shadow on hover */
        0px 0px 30px 6px rgb(255, 255, 255); /* Brighter glow on hover */
}

.main-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.main-content button {
    background-color: #058c42;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-content button:hover {
    background-color: #04471c;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}
.project-card {
    background: #242424;
    padding: 20px;
    border-radius: 10px;
    width: calc(33% - 20px); /* Responsive width */
    max-width: 300px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.project-card p {
    font-size: 14px;
    color: #c0c0c0;
}
#contact-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: none; 
                
}

#contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #c0c0c0;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #2b2b2b;
    color: #e0e0e0;
    font-size: 14px;
}

#contact-form button {
    background-color: #058c42;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #04471c;
}

.hamburger {
    display: none; /* Hidden on larger screens */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px; /* Positioned on the right */
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 3px; /* Rounded edges */
    transition: all 0.3s ease;
}

/* Animation for Active Hamburger Menu */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* Top bar becomes diagonal */
}

.hamburger.active span:nth-child(2) {
    opacity: 0; /* Middle bar disappears */
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* Bottom bar becomes diagonal */
}

/* Mobile Menu (Hidden by Default) */
.nav-right {
    display: flex;
    flex-direction: row; /* Default horizontal layout */
    justify-content: flex-end; /* Align buttons to the right */
    gap: 30px; /* Spacing between buttons */
    opacity: 1; /* Visible by default */
    pointer-events: auto;
    position: static; /* Normal flow for large screens */
    background: none;
    width: auto;
    transition: none; /* No animation for large screens */
}

.nav-right.mobile-visible {
    transform: translateY(0); /* Make it visible */
    opacity: 1; /* Fully visible */
    pointer-events: auto; /* Allow interaction */
}

iframe {
    border: none;
    width: 43%;
    display:block;
    margin: 0 auto;
}

/* General Mobile Adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-right: 10px;
        margin-top: 10px;
    }
    /* Navigation Bar */
    .navigation {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        position: relative;
        width: 100%; 
    }


    .nav-left {
        flex: 0;
        text-align: left;
        margin: 0;
        margin-left: 20px;
    }

    .nav-left h1 {
        font-size: 18px;
    }

    .nav-right {
        position: absolute;
        top: 75px;
        right: 0;
        flex-direction: column; /* Stack buttons vertically */
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        width: 100%;
        background: #1a1a1a; /* Background for mobile menu */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        margin: 0;
    }

    .nav-right.mobile-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-right button {
        width: 100%; /* Full-width buttons for mobile */
        padding: 15px 0;
        border: none;
        border-bottom: 1px solid #333;
        font-size: 16px;
    }

    .nav-right button {
        width: 100%;
        padding: 15px 0;
        border: none;
        border-bottom: 1px solid #333;
    }

    .hamburger {
        display: flex; /* Show hamburger menu on mobile */
    }

    /* Main Content */
    .main-content section {
        padding: 30px;
        margin: 20px;
        max-width: 90%; /* Shrink content box on smaller screens */
    }

    /* Projects Section */
    .projects-container {
        flex-direction: column;
        gap: 15px; /* More gap between stacked cards */
        align-items: center;
    }

    .project-card {
        width: 90%; /* Make cards full-width for mobile */
        max-width: none;
    }

    /* Contact Form */
    #contact-form {
        padding: 20px;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 12px; /* Smaller text inputs for mobile */
    }

    #contact-form button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-right {
        flex-direction: row; /* Horizontal layout for larger screens */
        position: static; /* Normal flow */
        opacity: 1; /* Fully visible */
        pointer-events: auto;
        width: auto;
        background: none; /* No background for larger screens */
    }

    .nav-right button {
        padding: 8px 20px;
        border: 2px solid #e0e0e0;
        border-radius: 25px;
        font-size: 16px;
        margin-right: 0;
    }
}
/* Smaller Phones (max-width: 480px) */
@media (max-width: 480px) {
    .nav-left h1 {
        font-size: 16px;
    }

    .nav-right button {
        font-size: 12px;
        padding: 5px 12px;
    }

    .main-content section {
        padding: 20px;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 11px;
    }

    #contact-form button {
        font-size: 12px;
    }
}

