@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: "Poppins", sans-serif;
    color: white; 
    overflow-x: hidden; 
    
    /* Parallax Background Setup: Fixed background on the body */
    background-image: url('image_of_fitbot_machine.jpg'); /* **CHANGE THIS PATH** */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This creates the parallax effect */
    background-color: #121212; 
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

p {
    color: rgb(181, 181, 181); 
}

/* TRANSITIONS and A/HOVER styles */
a, .btn{
    transition: all 300ms ease;
}
.hamburger-icon span {
    transition: all 0.3s ease-in-out; 
}
.menu-links {
    transition: all 0.3s ease-in-out; 
}

a {
    color: white; 
    text-decoration: none;
}

a:hover {
    color: #00ffff; 
    text-decoration: underline;
    text-underline-offset: 0.5rem; 
    text-decoration-color: #00ffff;
}

.logo {
    font-size: 2rem;
}

/* HAMBURGER MENU (for mobile) */
#hamburger-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.hamburger-menu {
    position: relative;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Dropdown Menu */

.menu-links {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(17, 17, 17, 0.98);
    width: 220px;
    border-radius: 8px;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-links li {
    list-style: none;
}

.menu-links a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.menu-links a:hover {
    background: #00ffff;
    color: #111;
}

/* Open Menu */

.menu-links.open {
    max-height: 500px;
    opacity: 1;
}

/* Animate Hamburger */

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
}

/*  HERO SECTION (Only used on index.html)  */

.hero-section {
    min-height: 75vh; 
    margin: 0; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    text-align: center;
    position: relative; 
    
    background: transparent; /* Transparent to show the body's fixed background */
    isolation: isolate; 
}

/* Dark Overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(8, 21, 51); 
    z-index: 1; 
}

/* Hero Content */
.hero-content {
    z-index: 10; 
    padding-top: 0; 
    padding-bottom: 5rem; /* keeps content clear of the absolutely-positioned bottom-nav */
}

.hero-title {
    font-size: 4rem; 
    font-weight: 550;
    letter-spacing: 0.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-description {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-star {
    position: absolute;
    top: 12%;
    right: 5%;
    width: 300px;
    height: 300px;
    opacity: 1;
    z-index: 2;
}

/* Scroll Down Arrow */
.scroll-down-icon {
    font-size: 3rem;
    display: inline-block;
    color: white;
    text-decoration: none;
    z-index: 10;
    animation: bounce 2s infinite; 
}
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

/* BOTTOM FLOATING NAVIGATION BAR */
.bottom-nav {
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.884); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem; 
    border-top: 1px solid rgb(255, 255, 255);
}

.bottom-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.bottom-nav-links a {
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    opacity: 0.7;
}

.bottom-nav-links a:hover {
    opacity: 1;
    text-decoration: none;
    color: #00ffff;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1); /* turns a black icon white */
    display: block;
}


/* MAIN CONTENT WRAPPER (The central white column that scrolls) */

.main-content-wrapper {
    /* Starts after the hero section (or immediately on subpages) */
    width: 100%;
    max-width: 1250px; 
    margin: 0 auto; 
    z-index: 50; 
    position: relative; 
    background-color: white; 
    color: #121212; 
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5); 
    
    /* Reset text color for elements inside the wrapper */
    & p, a {
        color: #121212; 
    }
}

/* Section Resets */
section {
    height: auto; 
    min-height: auto;
    margin: 0;
    padding: 0;
    display: block; 
    text-align: left;
    position: static; 
    color: #121212; 
}

/* 1. Two-Column Content Block (image sits aligned beside its section text) */
.white-content-block {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem;
}

.white-content-block .block-text {
    flex: 1 1 50%;
    min-width: 0;
}

.white-content-block .date {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: #888;
}

.block-title {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: right;
    color: #121212;
}
.block-exp-head {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
    color: #121212;
}

.block-subtitle-exp {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: left;
    color: #121212;
}

.block-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.description-text {
    display: block;
    max-width: 500px;
    margin: 0.5rem 0 0 auto;
    line-height: 1.6;
    color: #333;
    text-align: right;
}

.description-text-resume {
    display: block;
    margin: 0.5rem 0 0 auto;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.description-text-exp {
    display: block;
    margin: 0.5rem 0 0 auto;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.description-text-date-exp {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin: 0.5rem 0 0 auto;
    line-height: .5;
    color: #7a7a7a;
    text-align: left;
}

.description-text-group-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0 0 auto;
    line-height: .5;
    color: #504f4f;
    text-align: left;
}

.block-image-container {
    flex: 1 1 50%;
    min-width: 0;
}

.block-image-container img {
    width: 100%;
    max-width: 100%;
    height: auto;        /* Keeps the aspect ratio */
    display: block;
    border-radius: 12px;
}


/* 2. Three Column Layout (For process/system/about summaries) */
.three-column-layout {
    display: flex;
    justify-content: space-between;
    padding: 4rem;
    gap: 3rem;
    border-top: 1px solid #eee;
}

.column-block {
    flex: 1;
    text-align: center;
}

.column-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #121212;
}

.column-block p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

/* Button Styling for Content Blocks */
.btn-block {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #121212;
    transition: all 0.3s ease;
    color: #121212 !important;
}

.btn-block:hover {
    background-color: #121212;
    color: white !important;
}

.hover-button {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    border-radius: 12px;
}

.hover-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    background-color: #fafafa; /* subtle tint on hover, optional */
}

.hover-button:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact form labels need to override the global dark section text color */
#experience-intro label {
    color: #fff;
}

#experience-intro .contact-info-item {
    color: #fff;
}

/* ===========================
   Project Cards (projects.html)
=========================== */

.project-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding: 3rem 4rem;
    border-top: 1px solid #eee;
}

.project-text {
    flex: 1 1 40%;
    min-width: 0;
    padding-top: 0.5rem;
}

.project-title {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #121212;
}

.project-link {
    display: inline-block;
    font-size: 1rem;
    color: #121212;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    margin-bottom: 1rem;
}

.project-link:hover {
    color: #b5715e;
}

.project-description {
    color: #333;
    line-height: 1.6;
}

.project-media {
    flex: 1 1 55%;
    min-width: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* The screenshot sits full-height; buttons float on top of it near the bottom */
.project-preview-img {
    width: 100%;
    display: block;
}

.project-buttons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-media:hover .project-buttons {
    opacity: 1;
    transform: translateY(0);
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background-color: rgba(30, 30, 30, 0.88);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.project-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.project-btn:hover {
    background-color: #00ffff;
    color: #111;
    text-decoration: none;
}
