:root {
    --primary: #84bcdd;
    --primary-dark: #2c7bac;
    --primary-light: #A3D4EE;
    --secondary: #00E5D4;
    --accent: #FFC107;
    --dark: #000000;
    --light: #FFFFFF;
    --bg-light: #f1f2f4;
    --bg-white: #ffffff;
    --text-dark: #212121;
    --text-main: #424242;
    --text-medium: #555555;
    --text-light: #757575;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-white: #ffffff;
    --heading-color: var(--text-white);
    --gradient-primary: linear-gradient(135deg, #84bcdd 0%, #6BA4C5 100%);
    --gradient-secondary: linear-gradient(90deg, #212121 0%, #424242 100%);
    --gradient-hero: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    --gradient-cta: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    --gradient-blue: linear-gradient(135deg, #3949ab, #5c6bc0);
    --container-max-width: 1400px;
    --section-padding-large: 100px 0;
    --section-padding-medium: 80px 0;
    --section-padding-small: 50px 0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-full: 50px;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-text: 0 2px 4px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --primary-blue: #1a2980;
    --secondary-blue: #23395d;
    --accent-blue: #84bcdd;
    --light-blue: #5dade2;
    --dark-blue: #010D2E;
    --text-gray: #555555;
    --border-color: var(--text-white);
}

/* ============================================================================
   PORTFOLIO PAGE STYLES
   Consistent with website design system
   ============================================================================ */



/* Hero Section */
.work-hero {
    background: url('/static/assets/hero.jpeg') center 40% / cover no-repeat;
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 5rem 0 0 0;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.work-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.work-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.work-hero .container {
    position: relative;
    z-index: 2;
}

.work-hero h1 {
    font-size: 56px;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 900;
}

.work-hero p {
    color: var(--text-white);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

/* Portfolio Card - Redesigned for Premium Look */
.portfolio-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(132, 188, 221, 0.1);
    position: relative;
    z-index: 1;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #2c7bac 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(132, 188, 221, 0.2);
    border-color: transparent;
}

.portfolio-card:hover::after {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 60px 50px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Project Icon */
.project-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, rgba(132, 188, 221, 0.1) 0%, rgba(44, 123, 172, 0.1) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    transform: rotate(0deg);
}

.project-icon i {
    color: var(--primary);
    font-size: 32px;
    transition: all 0.4s ease;
}

.portfolio-card:hover .project-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

.portfolio-card:hover .project-icon i {
    color: white;
    transform: rotate(-45deg);
}

/* Project Category */
.project-category {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.portfolio-card:hover .project-category {
    color: rgba(255, 255, 255, 0.8);
}

/* Project Title */
.portfolio-card h3 {
    color: #1a1a1a;
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
}

.portfolio-card:hover h3 {
    color: white;
}

/* Description */
.description {
    color: #000000;
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 16px;
    transition: color 0.3s ease;
    max-height: none;
    overflow: visible;
}

.description p {
    margin-bottom: 8px;
    color: #111111 !important;
    font-size: 15px;
    line-height: 1.7;
}

.description ul,
.description ol {
    padding-left: 1.4em;
    margin: 6px 0 10px;
    color: #111111 !important;
}

.description li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 4px;
    color: #111111 !important;
}

.description strong,
.description b {
    color: #000000 !important;
    font-weight: 700;
}

.description * {
    color: #111111 !important;
}

.description strong,
.description b,
.description h1,
.description h2,
.description h3,
.description h4 {
    color: #111111 !important;
}

.description span {
    color: inherit !important;
    background: none !important;
    font-family: inherit !important;
}

.portfolio-card:hover .description * {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    justify-content: center;
}

.tech-tag {
    font-size: 12px;
    color: #2c7bac;
    background: #eef7ff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(132, 188, 221, 0.2);
}

.portfolio-card:hover .tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Card Footer */
.card-footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.portfolio-card:hover .card-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* View Link */
.view-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.view-link i {
    transition: transform 0.3s ease;
}

.view-link:hover i {
    transform: translateX(8px);
}

.portfolio-card:hover .view-link {
    color: white;
}

/* Empty State */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state p {
    color: var(--text-gray);
    font-size: 18px;
}

/* CTA Section */
.cta-portfolio {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%,
            var(--secondary-blue) 35%,
            #406e8e 70%,
            var(--light-blue) 100%);
    text-align: center;
}

.cta-portfolio h2 {
    color: var(--text-light);
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-portfolio p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent-blue);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-blue);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(132, 188, 221, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .work-hero {
        background: url('/static/assets/office-workspace.jpg') no-repeat center 40%;
        background-size: cover;
        min-height: 95vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        padding-top: 90px;
    }

    .work-hero h1 {
        font-size: 36px;
    }

    .work-hero p {
        font-size: 16px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-content {
        padding: 30px 25px;
    }

    .card-footer {
        padding: 18px 25px;
    }

    .cta-portfolio h2 {
        font-size: 32px;
    }

    .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 480px) {
    .work-hero {
        padding: 150px 0 80px;
    }

    .work-hero h1 {
        font-size: 28px;
    }

    .portfolio-section {
        padding: 60px 0;
    }

    .cta-portfolio {
        padding: 60px 0;
    }

    .cta-portfolio h2 {
        font-size: 28px;
    }
}