/*
==================================
    GLOBAL RESET & BASE STYLES
==================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #00C896;
    --accent-dark: #009E78;
    --accent-glow: rgba(0, 200, 150, 0.2);
    --bg: #0D0D0D;
    --bg-card: #161616;
    --bg-section: #111111;
    --text: #F0F0F0;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.3px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/*
======================
    PAGE HERO
======================
*/
.port-page-hero {
    padding: 100px 40px 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.port-page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 16px;
}

.port-page-hero p {
    font-size: 1.1rem;
    color: #888;
    max-width: 560px;
    margin: 0 auto;
}

/*
====================
    HERO SECTION
====================
*/
.port-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('/img/hero-bg-1.png') center/cover no-repeat;
}

.port-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(13, 13, 13, 0.95) 100%
    );
    z-index: 1;
}

.port-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.port-hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.port-hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #FFF;
    line-height: 1.1;
    margin-bottom: 20px;
}

.port-hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.port-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/*
===============
    BUTTONS
===============
*/
.port-btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #0D0D0D;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.port-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.port-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFF;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.port-btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/*
========================
    SCROLL INDICATOR
========================
*/
.port-hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.port-hero-scroll span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0); transform-origin: top; opacity: 0;
    }

    50% {
        transform: scaleY(1); transform-origin: top; opacity: 1;
    }

    100% {
        transform: scaleY(0); transform-origin: bottom; opacity: 0;
    }
}

/*
=======================
    SECTION HEADERS
=======================
*/
.port-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.port-section-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.port-section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #FFF;
}

/*
=====================
    FEATURED WORK
=====================
*/
.port-featured {
    padding: 100px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.port-featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.port-featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    cursor: pointer;
}

.port-featured-large {
    grid-row: span 2;
}

.port-featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    min-height: 240px;
}

.port-featured-item:hover img {
    transform: scale(1.05);
}

.port-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.port-featured-item:hover .port-featured-overlay {
    opacity: 1;
}

.port-featured-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: #0D0D0D;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 8px;
    width: fit-content;
}

.port-featured-overlay h3 {
    font-size: 1.2rem;
    color: #FFF;
    margin-bottom: 4px;
}

.port-featured-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.port-featured-cta {
    text-align: center;
    margin-top: 40px;
}

/*
================
    SERVICES
================
*/
.port-services {
    padding: 100px 40px;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.port-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.port-service-item {
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.port-service-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.port-service-icon {
    display: block;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.port-service-item h3 {
    font-size: 1.1rem;
    color: #FFF;
    margin-bottom: 10px;
}

.port-service-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/*
===================
    ABOUT STRIP
===================
*/
.port-about-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    gap: 80px;
    align-items: center;
}

.port-about-strip-img {
    position: relative;
}

.port-about-strip-img img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.port-about-strip-img img:hover {
    filter: grayscale(0%);
}

.port-about-strip-img::before {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    opacity: 0.3;
    pointer-events: none;
}

.port-about-strip-content .port-section-eyebrow {
    text-align: left;
}

.port-about-strip-content h2 {
    font-size: 2.2rem;
    color: #FFF;
    margin-bottom: 20px;
    text-align: left;
}

.port-about-strip-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
    font-size: 1rem;
}

/*
===================
    BACK TO TOP
===================
*/
#backToTopPort {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.2s ease;
    z-index: 999;
}

#backToTopPort:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

#backToTopPort.show {
    opacity: 1;
    visibility: visible;
}

/*
======================================
    RESPONSIVE CODE (SMALL MOBILE)
======================================
*/
@media (max-width: 480px) {
    .port-hero-name {
        font-size: 2.6rem;
    }

    .port-hero-tagline {
        font-size: 1rem;
    }

    .port-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .port-section-header h2 {
        font-size: 1.7rem;
    }

    .port-featured {
        padding: 60px 16px;
    }

    .port-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .port-featured-large {
        grid-row: span 1;
    }

    .port-featured-overlay {
        opacity: 1;
    }

    .port-services {
        padding: 60px 16px;
    }

    .port-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .port-about-strip {
        grid-template-columns: 1fr;
        padding: 60px 16px;
        gap: 40px;
    }

    .port-about-strip-img::before {
        display: none;
    }
}

/*
================================
    RESPONSIVE CODE (MOBILE)
================================
*/
@media (max-width: 768px) {
    .port-hero-name {
        font-size: 3rem;
    }

    .port-featured {
        padding: 70px 24px;
    }

    .port-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .port-featured-large {
        grid-row: span 1;
    }

    .port-featured-overlay {
        opacity: 1;
    }

    .port-services {
        padding: 70px 24px;
    }

    .port-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .port-about-strip {
        grid-template-columns: 1fr;
        padding: 70px 24px;
        gap: 48px;
    }
}

/*
================================
    RESPONSIVE CODE (TABLET)
================================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    .port-featured {
        padding: 80px 30px;
    }

    .port-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .port-about-strip {
        padding: 80px 30px;
        gap: 50px;
    }
}