/* ==========================================
PORTFOLIO PAGE
PAUL USHURHE
========================================== */

/* ==========================================
ROOT VARIABLES
========================================== */

:root {

--gold: #d4af37;
--gold-light: #f5cf5b;

--dark: #070d16;
--dark-2: #0b121d;
--dark-3: #101927;

--cream: #f7f1e8;

--text-dark: #182231;
--muted: #aeb7c5;

--border: rgba(212, 175, 55, 0.35);

}

/* ==========================================
RESET
========================================== */

* {
  
  margin: 0;
  padding: 0;
  
  box-sizing: border-box;

}

html {

scroll-behavior: smooth;

}

body {

font-family: Arial, Helvetica, sans-serif;

background: var(--dark);

color: #ffffff;

line-height: 1.6;

overflow-x: hidden;

}

img {

max-width: 100%;

display: block;

}

a {

text-decoration: none;

color: inherit;

}

button {

font-family: inherit;

}

/* ==========================================
CONTAINER
========================================== */

.container {

width: 90%;

max-width: 1200px;

margin: auto;

}

/* ==========================================
HEADER
========================================== */

.header {

position: fixed;

top: 0;
left: 0;

width: 100%;

height: 76px;

z-index: 1000;

background: rgba(7, 13, 22, 0.92);

backdrop-filter: blur(12px);

border-bottom: 1px solid rgba(212, 175, 55, 0.12);

}

.nav-container {

height: 100%;

display: flex;

align-items: center;

justify-content: space-between;

}

/* ==========================================
LOGO
========================================== */

.logo {

display: flex;

align-items: center;

gap: 12px;

}

.logo-icon {

width: 42px;

height: 42px;

border: 1px solid var(--gold);

display: flex;

align-items: center;

justify-content: center;

color: var(--gold);

font-size: 14px;

font-weight: bold;

letter-spacing: 1px;

}

.logo-text {

display: flex;

flex-direction: column;

}

.logo-text strong {

font-size: 14px;

letter-spacing: 1.5px;

}

.logo-text span {

font-size: 8px;

color: var(--gold);

letter-spacing: 1.5px;

margin-top: 2px;

}

/* ==========================================
NAVBAR
========================================== */

.navbar {

display: flex;

align-items: center;

gap: 30px;

}

.navbar > a {

position: relative;

font-size: 14px;

color: #ffffff;

transition: 0.35s ease;

}

.navbar > a:not(.hire-btn)::after {

content: "";

position: absolute;

left: 0;

bottom: -7px;

width: 0;

height: 2px;

background: var(--gold);

transition: 0.35s ease;

}

.navbar > a:hover {

color: var(--gold);

}

.navbar > a:hover::after,
.navbar > a.active::after {

width: 100%;

}

.navbar > a.active {

color: var(--gold);

}

/* ==========================================
HIRE BUTTON
========================================== */

.hire-btn {

padding: 10px 18px;

border: 1px solid var(--gold);

color: var(--gold) !important;

transition: 0.35s ease;

}

.hire-btn:hover {

background: var(--gold);

color: var(--dark) !important;

}

.hire-btn i {

margin-left: 6px;

}

/* ==========================================
MOBILE MENU BUTTON
========================================== */

.menu-btn {

display: none;

background: transparent;

border: none;

color: var(--gold);

font-size: 24px;

cursor: pointer;

}

/* ==========================================
PORTFOLIO HERO
========================================== */

.portfolio-hero {

min-height: 500px;

padding-top: 150px;

padding-bottom: 100px;

display: flex;

align-items: center;

background:

    radial-gradient(
        circle at 80% 30%,
        rgba(212, 175, 55, 0.12),
        transparent 35%
    ),

    radial-gradient(
        circle at 20% 70%,
        rgba(212, 175, 55, 0.06),
        transparent 35%
    ),

    var(--dark);

}

.portfolio-hero-content {

max-width: 850px;

}

.small-title {

display: inline-block;

color: var(--gold);

font-size: 13px;

font-weight: bold;

letter-spacing: 3px;

margin-bottom: 18px;

}

.portfolio-hero h1 {

font-size: clamp(42px, 6vw, 76px);

line-height: 1.08;

margin-bottom: 25px;

letter-spacing: -1px;

}

.portfolio-hero h1 span {

color: var(--gold);

}

.portfolio-hero p {

max-width: 720px;

color: var(--muted);

font-size: 17px;

line-height: 1.8;

}

/* ==========================================
PORTFOLIO SECTION
========================================== */

.portfolio-section {

padding: 100px 0 120px;

background: var(--dark-2);

}

.portfolio-heading {

text-align: center;

max-width: 750px;

margin: 0 auto 55px;

}

.portfolio-heading h2 {

font-size: clamp(32px, 5vw, 48px);

margin-bottom: 15px;

}

.portfolio-heading p {

color: var(--muted);

line-height: 1.8;

}

/* ==========================================
FILTER BUTTONS
========================================== */

.portfolio-filters {

display: flex;

justify-content: center;

align-items: center;

flex-wrap: wrap;

gap: 12px;

margin-bottom: 55px;

}

.filter-btn {

padding: 11px 20px;

border: 1px solid var(--border);

background: transparent;

color: #ffffff;

cursor: pointer;

transition: 0.35s ease;

font-size: 13px;

}

.filter-btn:hover {

border-color: var(--gold);

color: var(--gold);

transform: translateY(-2px);

}

.filter-btn.active {

background: var(--gold);

border-color: var(--gold);

color: var(--dark);

}

/* ==========================================
PROJECT GRID
========================================== */

.projects-grid {

display: grid;

grid-template-columns:
    repeat(2, minmax(0, 1fr));

gap: 30px;

}

/* ==========================================
PROJECT CARD
========================================== */

.project-card {

background: var(--dark-3);

border: 1px solid rgba(212, 175, 55, 0.18);

overflow: hidden;

transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;

}

.project-card:hover {

transform: translateY(-10px);

border-color: var(--gold);

box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(212, 175, 55, 0.08);

}

/* ==========================================
PROJECT IMAGE
========================================== */

.project-image {

height: 320px;

position: relative;

overflow: hidden;

background: #0a111d;

}

.project-image img {

width: 100%;

height: 100%;

object-fit: cover;

transition: transform 0.6s ease;

}

.project-card:hover .project-image img {

transform: scale(1.05);

}

/* ==========================================
PROJECT OVERLAY
========================================== */

.project-overlay {

position: absolute;

inset: 0;

display: flex;

align-items: center;

justify-content: center;

background: rgba(7, 13, 22, 0.65);

opacity: 0;

transition: 0.4s ease;

}

.project-card:hover .project-overlay {

opacity: 1;

}

.project-link {

width: 55px;

height: 55px;

border-radius: 50%;

display: flex;

align-items: center;

justify-content: center;

background: var(--gold);

color: var(--dark);

font-size: 18px;

transform: translateY(15px);

transition: 0.4s ease;

}

.project-card:hover .project-link {

transform: translateY(0);

}

.project-link:hover {

background: var(--gold-light);

transform: scale(1.08);

}

/* ==========================================
PROJECT CONTENT
========================================== */

.project-content {

padding: 28px;

}

.project-category {

display: inline-block;

color: var(--gold);

font-size: 11px;

font-weight: bold;

letter-spacing: 2px;

text-transform: uppercase;

margin-bottom: 10px;

}

.project-content h3 {

font-size: 24px;

margin-bottom: 12px;

}

.project-content p {

color: var(--muted);

font-size: 14px;

line-height: 1.8;

margin-bottom: 22px;

}

.case-study-link {

display: inline-flex;

align-items: center;

gap: 8px;

color: var(--gold);

font-size: 13px;

font-weight: bold;

transition: 0.35s ease;

}

.case-study-link i {

transition: 0.35s ease;

}

.case-study-link:hover {

color: var(--gold-light);

}

.case-study-link:hover i {

transform: translateX(5px);

}

/* ==========================================
CTA
========================================== */

.portfolio-cta {

padding: 110px 0;

text-align: center;

background:

    radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.1),
        transparent 50%
    ),

    var(--dark);

}

.cta-content {

max-width: 800px;

margin: auto;

}

.cta-content h2 {

font-size: clamp(35px, 5vw, 55px);

line-height: 1.15;

margin-bottom: 20px;

}

.cta-content h2 span {

color: var(--gold);

}

.cta-content p {

max-width: 650px;

margin: 0 auto 30px;

color: var(--muted);

line-height: 1.8;

}

/* ==========================================
BUTTON
========================================== */

.btn {

display: inline-flex;

align-items: center;

gap: 10px;

padding: 13px 24px;

border: 1px solid var(--gold);

transition: 0.35s ease;

}

.btn-primary {

background: var(--gold);

color: var(--dark);

}

.btn-primary:hover {

background: var(--gold-light);

transform: translateY(-3px);

box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.2);

}

/* ==========================================
FOOTER
========================================== */

.footer {

padding: 30px 0;

border-top: 1px solid rgba(212, 175, 55, 0.12);

background: var(--dark);

}

.footer .container {

display: flex;

justify-content: space-between;

align-items: center;

gap: 20px;

}

.footer p {

color: var(--muted);

font-size: 12px;

}

/* ==========================================
RESPONSIVE — TABLET
========================================== */

@media (max-width: 900px) {

.navbar {

    gap: 18px;

}


.projects-grid {

    grid-template-columns: 1fr;

    max-width: 700px;

    margin: auto;

}

}

/* ==========================================
RESPONSIVE — MOBILE
========================================== */

@media (max-width: 700px) {

.header {

    height: 70px;

}


.navbar {

    position: absolute;

    top: 70px;

    left: 0;

    width: 100%;

    display: none;

    flex-direction: column;

    align-items: flex-start;

    gap: 0;

    padding: 15px 5% 25px;

    background: rgba(7, 13, 22, 0.98);

    border-bottom: 1px solid var(--border);

}


.navbar.show {

    display: flex;

}


.navbar > a {

    width: 100%;

    padding: 14px 0;

}


.navbar > a:not(.hire-btn)::after {

    display: none;

}


.hire-btn {

    margin-top: 8px;

    width: auto !important;

}


.menu-btn {

    display: block;

}


.portfolio-hero {

    min-height: auto;

    padding-top: 130px;

    padding-bottom: 80px;

}


.portfolio-hero h1 {

    font-size: 43px;

}


.portfolio-hero p {

    font-size: 15px;

}


.portfolio-section {

    padding: 75px 0 90px;

}


.portfolio-filters {

    justify-content: flex-start;

    overflow-x: auto;

    flex-wrap: nowrap;

    padding-bottom: 10px;

}


.filter-btn {

    flex-shrink: 0;

}


.project-image {

    height: 260px;

}


.project-content {

    padding: 23px;

}


.project-content h3 {

    font-size: 21px;

}


.footer .container {

    flex-direction: column;

    text-align: center;

}

}

/* ==========================================
VERY SMALL PHONES
========================================== */

@media (max-width: 420px) {

.portfolio-hero h1 {

    font-size: 36px;

}


.portfolio-heading h2 {

    font-size: 31px;

}


.project-image {

    height: 220px;

}

}


/* ==========================================
   PORTFOLIO SCROLL REVEAL ANIMATIONS
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================
   PORTFOLIO HERO
========================================== */

.portfolio-hero-content.reveal {
    transform: translateX(-50px);
}

.portfolio-hero-content.reveal.show {
    transform: translateX(0);
}


/* ==========================================
   PORTFOLIO HEADING
========================================== */

.portfolio-heading.reveal {
    transform: translateY(45px);
}

.portfolio-heading.reveal.show {
    transform: translateY(0);
}


/* ==========================================
   FILTER BUTTONS
========================================== */

.portfolio-filters.reveal {
    transform: translateY(35px);
}

.portfolio-filters.reveal.show {
    transform: translateY(0);
}


/* ==========================================
   PROJECT CARDS
========================================== */

.project-card.reveal {
    transform: translateY(45px);
}

.project-card.reveal.show {
    transform: translateY(0);
}


/* Stagger project cards */

.project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:nth-child(2) {
    transition-delay: 0.25s;
}

.project-card:nth-child(3) {
    transition-delay: 0.4s;
}

.project-card:nth-child(4) {
    transition-delay: 0.55s;
}


/* ==========================================
   CTA
========================================== */

.cta-content.reveal {
    transform: translateY(45px);
}

.cta-content.reveal.show {
    transform: translateY(0);
}