/* main.css */
* Global CSS Variables and Base Styles */

:root {
    /* Easily modify these numbers to change the look */
    --nav-width: 150px;       /* Total rail width */
    --icon-box-size: 70px;   /* Individual hit area (70x60 was too big) */
    --nav-z-index: 9999;
}

/* The Side Rail (Navigation) */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width);
    height: 100vh;
    background: var(--surface); /* From base.css: #151923 */
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 16px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: var(--nav-z-index);
}

.side-nav__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--nav-width);
    height: var(--icon-box-size); /* This defines the icon's "space" */
    color: var(--text);
    transition: all 0.2s ease;
}

.side-nav__link svg {
    width: 35px; /* Smaller, cleaner look */
    height: 35px;
    margin: 8px 0px 8px 0px;
}

.side-nav__link:hover svg {
    stroke: var(--accent); /* #5EEAD4 */
    transform: scale(1.1);
}

/* Push main content to the right so it isn't covered */
.content-wrapper {
    margin-left: var(--nav-width);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .side-nav {
        width: 100% !important;
        height: 70px !important;
        /* Keeps it at the bottom while scrolling */
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        position: fixed !important;
        
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal spacing for icons */
        justify-content: space-around !important; 
        align-items: center !important;
        padding: 0 16px;
        
        border-right: none;
        border-top: 1px solid var(--border);
        background: var(--surface);
        z-index: var(--nav-z-index);
    }

    /* Ensure the sub-containers don't block the horizontal flow */
    .side-nav__top, 
    .side-nav__bottom {
        display: contents !important; /* Removes the container but keeps the children */
    }

    .side-nav__link {
        flex: 1; /* Gives each icon equal clickable space */
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .side-nav__link svg {
        /* Respecting your 35px size with additional mobile margin */
        margin: 0 10px; 
    }

    .side-nav__link:active {
    background: rgba(94, 234, 212, 0.1); /* Subtle glow on touch */
}

    .content-wrapper {
        margin-left: 0 !important;
        /* Add bottom padding so content doesn't get stuck behind the dock */
        padding-bottom: 90px !important; 
    }

    /* Stack Hero: 60/40 becomes 100% vertical */
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    /* Ensure the code-card doesn't overflow on small screens */
    .code-card {
        width: 100%;
        padding: 16px;
    }

    /* Stack Project Grid: 3-column becomes 1-column */
    .project-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .hero-title {
        font-size: 1.8rem; /* Slightly smaller for mobile readability */
    }
}

/* The Block */

.project-card {
  background: #151924;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 1.5rem;
}

/* The Elements */
.project-card__title {
  color: var(--accent-color);
  margin-top: 0;
}

.project-card__tech {
  color: #ff9f43;
  font-weight: 600;
}

/* Button Hover */
button:hover,
.btn:hover {
  color: white;
}

/* Navigation Link Hover */
.nav-menu a:hover,
.nav-menu li a:hover {
  color: white;
}

.project-card__link {
  color: var(--accent-color);
  font-weight: bold;
}

/* main.css - Project Detail Section */

.project-detail__header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1rem;
}

.project-detail__title {
  color: var(--accent-color);
  font-size: 2.5rem;
}

.project-detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* Description on left, Gallery on right */
  gap: 3rem;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-item img {
  border-radius: 8px;
  border: 1px solid #444;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.02);
}

.btn-back {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}

/*# sourceMappingURL=main.css.map */