﻿/* --- Basic Reset & Global Styles --- */

html {
    height: 100%;
}

main {
    flex-grow: 1;
}

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    padding-top: 80px;
}

/* --- Remove Old Header & Navigation --- */
header {
    display: none; /* We hide the old header completely */
}

/* --- New Floating Navigation --- */
.floating-nav {
    position: fixed; /* Makes the nav float on top */
    top: 20px; /* Distance from the top */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Fine-tune the centering */
    background-color: #8b8b8b; /* The orange background */
    border-radius: 999px; /* Pill shape */
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000; /* Ensures it stays on top of other content */
}

.floating-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px; /* Space between nav items */
}

.floating-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 999px; /* Pill shape for links */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.floating-nav a.active {
    background-color: #fff; /* White background for the active link */
    color: #000;
}

.floating-nav a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* --- Main Content --- */
.main-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 4rem; /* Space between picture and text */
}

.profile-picture img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* This makes the image circular */
    object-fit: cover; /* Prevents the image from being squished */
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.7;
}

.about-text strong {
    font-weight: bold; /* Ensures strong tags are bold */
}

/* --- Separator Line --- */
.separator {
    border: none;
    height: 2px;
    background-color: #333;
    margin: 4rem 0 0 0; /* Margin on top only */
}

/* --- Anchored Footer --- */
.floating-footer {
    margin: 4rem auto 2rem auto; /* Adds space around the footer */
    width: 90%;
    max-width: 600px;
    background-color: #2c2c32; /* Dark background */
    border-radius: 999px; /* Pill shape */
    padding: 12px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-socials ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 1.5rem; /* Larger icons */
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: #f38d68; /* Orange hover color */
}

.footer-legal {
    color: #a0a0a0;
}

.footer-legal a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal span {
    margin: 0 8px;
}

/* --- Featured Work & Project Grid --- */
.work-section {
    max-width: 1024px;
    margin: 4rem auto; /* Adds space above/below the section */
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    /* This creates a responsive grid. It will fit as many columns as possible
       that are at least 350px wide. On smaller screens, it will wrap to fewer columns. */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative; /* This is crucial for positioning the overlay */
    display: block; /* Make the <a> tag behave like a div */
    overflow: hidden; /* Hides parts of the overlay that might spill out */
    border-radius: 15px; /* Rounded corners like in your image */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* A subtle shadow */
    aspect-ratio: 1 / 1; /* This makes the card a perfect square */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes any weird spacing below the image */
    transition: opacity 0.3s ease-in-out; /* Smooth fade for the image */
}

/* This is the overlay that holds the project text */
.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: white;
    background-color: rgba(44, 44, 50, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.1);

    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth fade for the overlay */
}

.project-tags {
    display: flex;
    flex-wrap: wrap; /* Allow tags to wrap if needed */
    gap: 8px;
    margin-bottom: 1rem;
}

.project-tags span {
    background-color: #ff8a80; /* Pinkish color for tags */
    color: #000;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-title-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.project-title-row h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #ff8a80; /* Pinkish color for title */
}

.project-title-row .arrow {
    font-size: 2rem;
    font-weight: bold;
    color: #ff8a80;
    transition: transform 0.2s ease-in-out;
}

.project-card:hover .arrow {
    transform: translateX(5px);
}

.project-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #dcdcdc;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-description {
    color: #dcdcdc;
    font-size: 1rem;
    line-height: 1.5;
    /* margin-top: auto; removed this as justify-content handles it */
}


/* --- THE HOVER EFFECT --- */
.project-card:hover img {
    opacity: 0.2; /* Fade the image out more on hover */
}

.project-card:hover .project-info {
    opacity: 1; /* Fade the text overlay in on hover */
}

/* --- Project Detail Page --- */

.project-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

.back-link:hover {
    color: #000;
}

.project-header {
    display: flex;
    gap: 2rem;
}

.project-about {
    flex: 2;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.project-info-sidebar {
    flex: 1;
    padding: 2rem;
}

.project-logo {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 10%;
    object-fit: cover;
}

.project-info-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.project-info-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-sidebar li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.project-image-full {
    width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-content h3 {
    margin-top: 3rem;
    font-size: 1.8rem;
}

.project-content ol {
    line-height: 1.8;
    padding-left: 20px;
}

.highlight-box {
    background-color: #e7f5ff;
    border-left: 4px solid #007bff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}
