body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #1a1a2e; /* This will be the color behind the hero image */
    color: white;
    position: relative;
    font-family: 'Fredoka One', sans-serif;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130vh;
    background-image: url('pictures/background.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

#second-image {
    position: fixed;
    right: 1%;
    left: 55%;
    width: 1100px;
    height: 1100px;
    background-image: url('pictures/nano.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    transition: transform 0.3s ease-out;
}

#overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    text-align: center;
    z-index: 1;
    min-height: 100vh; /* Make hero section fill the viewport */
    box-sizing: border-box;
}

h1, h2 {
    font-family: 'Fredoka One', sans-serif;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

h1 {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(6rem, 5vw, 3rem);
    margin-bottom: 0;
}

h2 {
    font-family: 'Glassical Indifference', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    width: 100%;
}

.social-button {
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.social-button img {
    width: 60px;
    height: 60px;
    transition: transform 0.2s ease-in-out;
}

.social-button:hover img {
    transform: scale(1.5);
}

/* NEW: This wrapper creates the white background for content */
.content-wrapper {
    background-color: #ffffff; /* Solid white background */
    color: #000000; /* Default text color for content */
    position: relative;
    z-index: 5; /* Ensure it's above the fixed background images */
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* UPDATED: About Me section styling */
#about-me-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    box-sizing: border-box;
    z-index: 10;
}

.about-content {
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.about-content h3 {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    color: #000000; /* Black text */
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 0.01rem;
    color: #333333; /* Dark gray for better readability */
    font-family: 'Inter', sans-serif;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4d8d;
    z-index: 10;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 70px;
    height: 70px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* --- MERGED STYLES FROM projects.css --- */

.projects-container {
    padding: 60px 40px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.projects-title {
    font-family: 'Pinyon Script', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ff4d8d;
}

.projects-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #555555;
    opacity: 0.9;
}

.software-button {
    aspect-ratio: 1 / 1; /* Makes the buttons perfectly square */
    height: auto; /* Remove fixed height */
    width: 100%; /* Take full width of grid cell */
}

.software-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 equal columns */
    gap: 15px;
    width: 100%;
}

.software-button {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.software-button:hover {
    transform: scale(1.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border-color: rgba(255, 77, 141, 0.3);
}

.software-button img.software-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    z-index: 1;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.software-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-button:hover .video-container {
    opacity: 1;
}

.software-button:hover img.software-logo {
    opacity: 0;
    visibility: hidden;
}

.button-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(248, 31, 183, 0.3);
    transform: translateY(30px);
    transition: all 0.5s ease;
    opacity: 0;
}

.software-button:hover .button-content {
    background: rgba(26, 26, 46, 0.5);
    opacity: 1;
    transform: translateY(0);
}

.software-button h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #ff4d8d; /* Text inside button should be white */
    padding: 10px 20px;
    transition: all 0.4s ease 0.1s;
    transform: scale(0.9);
    opacity: 0;
}

.software-button:hover h3 {
    opacity: 1;
    transform: scale(1.1);
}

/* --- NAVIGATION STYLES --- */
.text-nav {
    position: fixed;
    top: 30px;
    right: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
    z-index: 1000;
}

.text-nav-item {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.text-nav-item:hover {
    transform: translateY(-2px);
    color: #ff4d8d;
}

.text-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff4d8d;
    transition: all 0.3s ease;
}

.text-nav-item:hover::after {
    width: 100%;
}


/* --- RESPONSIVE DESIGN --- */

/* Default: 6 buttons in a row for large screens */
.software-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 2rem;
    width: 100%;
}

.software-button {
    height: 200px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .software-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    .software-button {
        height: 220px;
    }
}

@media (max-width: 900px) {
    .software-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .software-button {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .software-buttons { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .software-button { 
        height: 180px; 
    }
    
    /* Other mobile styles */
    h1 { font-size: clamp(3rem, 10vw, 4rem); }
    h2 { font-size: clamp(1rem, 4vw, 1.5rem); }
    .social-button img { width: 40px; height: 40px; }
    #second-image { display: none; }

    .about-content { padding: 1.5rem; max-width: 90%; margin: 0 auto; }
    .about-content h3 { font-size: 2.2rem; }
    .about-content p { font-size: 1rem; }
    .tool-button img { width: 40px; height: 40px; }
    
    .projects-title { font-size: 3rem; }
    .software-button h3 { font-size: 1.5rem; }
    
    .text-nav { top: 20px; right: 20px; gap: 15px; }
    .text-nav-item { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .software-button { 
        height: 160px; 
    }
    
    .text-nav {
        flex-direction: row;
        gap: 12px;
        top: 15px;
        right: 50%;
        transform: translateX(50%);
        background: rgba(26, 26, 46, 0.7);
        padding: 8px 15px;
        border-radius: 30px;
        backdrop-filter: blur(5px);
    }
    .text-nav-item { font-size: 0.8rem; }
    #overlay { padding-top: 80px; }

    .projects-title { font-size: 2.5rem; }
    .projects-subtitle { font-size: 1rem; }
    .software-button h3 { font-size: 1.3rem; }
}