/* ----------------------------------------------------------------
    Matthew Waring Portfolio - Canvas 7 Theme
    Based on Canvas Freelancer Demo
    Version: 1.0
-----------------------------------------------------------------*/

:root {
    --cnvs-themecolor: #0d6efd;
    --cnvs-themecolor-rgb: 13, 110, 253;

    --cnvs-body-font: 'Roboto', sans-serif;
    --cnvs-primary-font: 'Source Sans Pro', sans-serif;
    --cnvs-secondary-font: 'PT Serif', serif;

    --cnvs-heading-color: #333;
    --mw-dark-bg: #1a1a2e;
}

/* Typography
---------------------------------------------------------------------------- */
* {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.font-secondary {
    font-family: var(--cnvs-secondary-font) !important;
}

#content p {
    line-height: 1.7;
}

/* Header
---------------------------------------------------------------------------- */
#header {
    --cnvs-sticky-header-height: 70px;
    --cnvs-header-transparent-border-color: rgba(var(--cnvs-contrast-rgb), .05);
    --cnvs-primary-menu-font-weight: 500;
    --cnvs-primary-menu-font-size: 0.875rem;
    --cnvs-primary-menu-tt: uppercase;
    --cnvs-primary-menu-ls: 2px;
}

/* Menu links on transparent header - dark grey for readability */
#header.transparent-header.dark .menu-link,
#header.transparent-header.dark .menu-link div {
    color: #444 !important;
    text-shadow: none;
}

/* Logo - no filter needed, use dark logo naturally */
#header.transparent-header.dark #logo img.logo-default {
    filter: none;
}

.menu-link {
    font-weight: 600;
    font-size: 0.925rem;
}

.menu-item.current > .menu-link,
.menu-item:hover > .menu-link {
    color: var(--cnvs-themecolor) !important;
}

#logo img {
    max-height: 50px;
}

/* Hero Section
---------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(13, 110, 253, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: white !important;
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Page Title (for inner pages)
---------------------------------------------------------------------------- */
.page-title-section {
    position: relative;
    padding: 150px 0 80px;
    background-size: cover;
    background-position: center;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(13, 110, 253, 0.5) 100%);
}

.page-title-section .container {
    position: relative;
    z-index: 1;
}

/* Skills Badges
---------------------------------------------------------------------------- */
.skill-badge {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--cnvs-themecolor);
    border-color: var(--cnvs-themecolor);
}

.tech-badge {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    background: rgba(var(--cnvs-themecolor-rgb), 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--cnvs-themecolor);
}

/* Portfolio Grid
---------------------------------------------------------------------------- */
.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-desc {
    color: white;
}

.portfolio-desc h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: white;
}

.portfolio-desc p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.portfolio-desc .category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--cnvs-themecolor);
    color: white;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* Portfolio Filter
---------------------------------------------------------------------------- */
.portfolio-filter {
    margin-bottom: 40px;
}

.portfolio-filter button {
    padding: 10px 20px;
    margin: 5px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter button:hover,
.portfolio-filter button.active {
    background: var(--cnvs-themecolor);
    border-color: var(--cnvs-themecolor);
    color: white;
}

/* Work Detail Page
---------------------------------------------------------------------------- */
.work-detail-hero {
    position: relative;
    padding: 150px 0 80px;
    background-size: cover;
    background-position: center;
}

/* Remove extra padding on work detail content */
.work-detail-content .content-wrap {
    padding-top: 40px !important;
}

.work-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

.sidebar-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cnvs-themecolor);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cnvs-themecolor);
}

/* About Page
---------------------------------------------------------------------------- */
.quality-card {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.quality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.quality-card i {
    font-size: 2.5rem;
    color: var(--cnvs-themecolor);
    margin-bottom: 20px;
}

/* Buttons
---------------------------------------------------------------------------- */
.btn-portfolio {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-portfolio:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--cnvs-themecolor-rgb), 0.3);
}

/* Footer
---------------------------------------------------------------------------- */
#footer a.social-icon {
    margin: 0 5px;
}

#footer .si-linkedin:hover {
    color: #0077b5 !important;
}

/* Utilities
---------------------------------------------------------------------------- */
.rounded-10 { border-radius: 10px !important; }
.translatey-3:hover { transform: translateY(-3px) !important; }

.bg-dark-gradient {
    background: linear-gradient(135deg, var(--mw-dark-bg) 0%, #16213e 100%);
}

/* Section Spacing
---------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .section {
        padding: 100px 0;
    }
}
