/* 
   Premium Minimalist CSS for Vullnet Group
   Design Philosophy: Architectural, Bold, High-Contrast
*/

:root {
    --primary-color: #FFB800; /* Vullnet Orange/Yellow */
    --secondary-color: #0A0A0A; /* Deep Black */
    --form-shadow: 0 2px 30px rgba(0,0,0,0.05);
    --text-muted: #666666;
    --light-bg: #F5F5F5;
    --border-color: #E0E0E0;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --container-width: 1400px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--secondary-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
}

h1 { 
    font-size: clamp(2.5rem, 8vw, 5.5rem); 
    font-weight: 800; 
    letter-spacing: -0.02em;
}

h2 { 
    font-size: clamp(1.8rem, 4vw, 3rem); 
    margin-bottom: 2.5rem;
}

.section-heading {
    max-width: 850px;
}

@media (max-width: 992px) {
    .section-heading {
        margin-left: auto;
        margin-right: auto;
    }
}

h3 { font-size: 1.2rem; letter-spacing: 0.2em; }

p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
}

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color) !important; }
.text-center { text-align: center; }

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .container { padding: 0 2rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 1.2rem; }
}

section {
    padding: 10rem 0;
}

@media (max-width: 768px) {
    section { padding: 6rem 0; }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.5rem;
}

.row.form-row {
    margin-bottom: 0;
}

.col, .col-md-6, .col-md-4, .col-md-3, .col-lg-8, .col-lg-4 {
    padding: 0 1.5rem;
}

.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }

@media (max-width: 992px) {
    .row {
        overflow: hidden;
    }
    .col-lg-8, .col-lg-4, .col-md-6, .col-md-4, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 4rem;
    }
    .col-lg-8:last-child, .col-lg-4:last-child, .col-md-6:last-child, .col-md-4:last-child, .col-md-3:last-child { 
        margin-bottom: 0; 
    }
    .row.form-row > [class*="col-"] {
        margin-bottom: 0;
    }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    transition: var(--transition);
}

header.nav-up {
    transform: translateY(-100%);
    opacity: 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* (nav .container mobile handled in hamburger section) */

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.navbar-brand img.logo {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.navbar-brand:hover img.logo {
    transform: scale(1.02);
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-nav {
    list-style: none;
    display: flex;
}

/* (navbar-nav mobile gap handled in hamburger section) */

.nav-item {
    margin-left: 3rem;
}

/* (nav-item mobile margin handled in hamburger section) */

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ============================================================
   HAMBURGER MENU (Mobile)
   ============================================================ */
.hamburger {
    display: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: none;
    transition: var(--transition);
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1.5px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

/* Hamburger active state — morph into X */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    background: var(--primary-color);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
    background: var(--primary-color);
}

.hamburger.is-active .hamburger-inner::after {
    top: 0;
    opacity: 0;
    transform: rotate(90deg);
}

/* Mobile Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: inline-block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        box-shadow: -10px 0 60px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 6rem 3rem;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    /* Overlay behind menu */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.45s ease;
        z-index: -1;
    }

    .nav-menu.is-open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-menu .nav-item {
        margin-left: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.is-open .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered link reveal */
    .nav-menu.is-open .nav-item:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.is-open .nav-item:nth-child(2) { transition-delay: 0.16s; }
    .nav-menu.is-open .nav-item:nth-child(3) { transition-delay: 0.24s; }
    .nav-menu.is-open .nav-item:nth-child(4) { transition-delay: 0.32s; }
    .nav-menu.is-open .nav-item:nth-child(5) { transition-delay: 0.40s; }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        letter-spacing: 3px;
        padding: 1rem 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-color);
    }

    /* Prevent body scroll when menu open */
    body.nav-is-open {
        overflow: hidden;
    }

    /* Adjust nav container for mobile */
    nav .container {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .nav-menu {
        width: 100%;
        max-width: 100vw;
        padding: 6rem 2rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlide 30s linear infinite;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
}

.slide:nth-child(2) {
    animation-delay: 10s;
}

.slide:nth-child(3) {
    animation-delay: 20s;
}

@keyframes heroSlide {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    5% {
        opacity: 1;
    }
    28% {
        opacity: 1;
    }
    33% {
        opacity: 0;
        transform: scale(1.15);
    }
    100% {
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1000px;
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 5rem;
    }
    .hero-content { margin: 0 auto; }
}

.hero-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.4em;
    font-size: 0.9rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .hero-btns { justify-content: center; }
}

@media (max-width: 576px) {
    .hero-btns { flex-direction: column; gap: 1rem; }
    .hero-btns .btn { width: 100%; text-align: center; }
}

/* About Hero Animated Gradient */
.hero-about {
    background: var(--secondary-color);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.3; /* Image is barely visible */
    filter: grayscale(100%) brightness(0.5); /* Make it subtle */
}

.animated-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
}

.gradient-blob {
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.blob-1 {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -30%;
    left: -10%;
    animation: moveBlob1 8s infinite alternate ease-in-out;
}

.blob-2 {
    background: radial-gradient(circle, #ff8c00 0%, transparent 70%);
    bottom: -20%;
    right: -10%;
    animation: moveBlob2 10s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    width: 40vmax;
    height: 40vmax;
    opacity: 0.2;
    animation: moveBlob3 7s infinite alternate ease-in-out;
}

.blob-4 {
    background: radial-gradient(circle, #0abab5 0%, transparent 70%);
    top: 10%;
    right: 20%;
    width: 50vmax;
    height: 50vmax;
    opacity: 0.18;
    animation: moveBlob4 9s infinite alternate-reverse ease-in-out;
}

@keyframes moveBlob1 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.35; }
    15%  { transform: translate(12%, 18%) scale(1.06) rotate(2deg); opacity: 0.42; }
    35%  { transform: translate(28%, 8%) scale(0.94) rotate(-1deg); opacity: 0.36; }
    55%  { transform: translate(3%, 32%) scale(1.14) rotate(4deg); opacity: 0.5; }
    75%  { transform: translate(-12%, 14%) scale(0.97) rotate(-3deg); opacity: 0.39; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.35; }
}

@keyframes moveBlob2 {
    0%   { transform: translate(0, 0) scale(1.1) rotate(0deg); opacity: 0.33; }
    20%  { transform: translate(-22%, -12%) scale(1.04) rotate(-4deg); opacity: 0.46; }
    45%  { transform: translate(18%, -28%) scale(1.2) rotate(2deg); opacity: 0.28; }
    70%  { transform: translate(-8%, -16%) scale(1.0) rotate(-5deg); opacity: 0.44; }
    100% { transform: translate(0, 0) scale(1.1) rotate(0deg); opacity: 0.33; }
}

@keyframes moveBlob3 {
    0%   { transform: translate(0, 0) rotate(0deg); opacity: 0.16; }
    25%  { transform: translate(-25%, -18%) rotate(4deg); opacity: 0.26; }
    50%  { transform: translate(12%, 8%) rotate(-3deg); opacity: 0.14; }
    75%  { transform: translate(18%, -10%) rotate(2deg); opacity: 0.22; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.16; }
}

@keyframes moveBlob4 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.12; }
    25%  { transform: translate(32%, -18%) scale(1.14) rotate(5deg); opacity: 0.22; }
    50%  { transform: translate(8%, -32%) scale(0.88) rotate(-2deg); opacity: 0.14; }
    75%  { transform: translate(-22%, -8%) scale(1.08) rotate(-5deg); opacity: 0.2; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.12; }
}

@media (max-width: 768px) {
    .gradient-blob {
        width: 40vmax;
        height: 40vmax;
        filter: blur(40px);
        opacity: 0.25; /* More transparent for mobile */
    }
    
    .blob-1 { animation-duration: 5s; }
    .blob-2 { animation-duration: 6s; }
    .blob-3 { 
        animation-duration: 4s;
        width: 30vmax;
        height: 30vmax;
    }
    .blob-4 {
        animation-duration: 5s;
        width: 30vmax;
        height: 30vmax;
        opacity: 0.12;
    }

    .hero-about .hero-content {
        padding-top: 8rem; /* Move titles more to the bottom */
    }

    .hero-about {
        min-height: 50vh !important; /* Back to original height for better balance */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure hero content stays on top and is legible */
.hero-about .hero-content {
    position: relative;
    z-index: 10;
}

.hero-about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Work Items */
.work-item-inner {
    background: #fff;
    padding: 4rem 3.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .work-item-inner {
        padding: 3rem 2rem;
    }
}

.work-item-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.work-item-inner:hover {
    border-color: var(--secondary-color);
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.work-item-inner:hover::before {
    height: 100%;
}

.work-item-cat {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--primary-color);
    margin-bottom: 0;
    display: block;
    opacity: 0.8;
}

.work-item-icon-box {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.work-item-inner:hover .work-item-icon-box {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.work-item-inner:hover .work-item-icon-box .work-item-cat {
    color: var(--white);
}

.work-item-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transition: var(--transition);
}

.work-item-inner:hover .work-item-accent {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
}

.work-item-inner h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.work-item-inner p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Expertise Section Redesign */
.expertise-section.overlap-hero {
    margin-top: -120px;
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: 5rem;
    background: transparent !important;
}

.expertise-grid-wrap {
    background-color: var(--white);
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 4rem 3rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.expertise-grid-wrap::after {
    content: 'V';
    position: absolute;
    top: -2rem;
    right: 2rem;
    font-size: 25rem;
    font-weight: 900;
    color: rgba(255, 184, 0, 0.05); /* Using primary color with very low opacity */
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

@media (max-width: 992px) {
    .expertise-grid-wrap {
        padding: 4rem 3rem;
    }
    .expertise-section.overlap-hero {
        margin-top: -60px;
    }
}

@media (max-width: 576px) {
    .expertise-grid-wrap {
        padding: 3rem 1.5rem;
    }
    .expertise-section.overlap-hero {
        margin-top: -40px;
        padding-bottom: 3rem;
    }
}

.expertise-col-1, .expertise-col-2, .expertise-col-3 { 
    margin-top: 0; 
    display: flex;
}

/* Background images for expertise cards */
.expertise-col-1 .work-item-inner {
    background-image: url('/images/development_background.webp');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    color: #fff;
    position: relative;
    z-index: 1;
}

.expertise-col-2 .work-item-inner {
    background-image: url('/images/restoration_background.webp');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    color: #fff;
    position: relative;
    z-index: 1;
}

.expertise-col-3 .work-item-inner {
    background-image: url('/images/construction_background.webp');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Overlay for better text contrast */
.expertise-col-1 .work-item-inner::after,
.expertise-col-2 .work-item-inner::after,
.expertise-col-3 .work-item-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    transition: var(--transition);
}

.expertise-col-1 .work-item-inner:hover::after,
.expertise-col-2 .work-item-inner:hover::after,
.expertise-col-3 .work-item-inner:hover::after {
    background: rgba(0, 0, 0, 0.7);
}

/* Adjust text colors for better visibility */
.expertise-col-1 .work-item-inner h3,
.expertise-col-2 .work-item-inner h3,
.expertise-col-3 .work-item-inner h3 {
    color: #fff;
}

.expertise-col-1 .work-item-inner p,
.expertise-col-2 .work-item-inner p,
.expertise-col-3 .work-item-inner p {
    color: rgba(255, 255, 255, 0.9);
}

.expertise-col-1 .work-item-cat,
.expertise-col-2 .work-item-cat,
.expertise-col-3 .work-item-cat {
    color: var(--primary-color);
}

.expertise-col-1 .work-item-icon-box,
.expertise-col-2 .work-item-icon-box,
.expertise-col-3 .work-item-icon-box {
    border-color: rgba(255, 255, 255, 0.3);
}

.expertise-col-1 .work-item-inner:hover .work-item-icon-box,
.expertise-col-2 .work-item-inner:hover .work-item-icon-box,
.expertise-col-3 .work-item-inner:hover .work-item-icon-box {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.expertise-col-1 .work-item-inner:hover .work-item-icon-box .work-item-cat,
.expertise-col-2 .work-item-inner:hover .work-item-icon-box .work-item-cat,
.expertise-col-3 .work-item-inner:hover .work-item-icon-box .work-item-cat {
    color: var(--primary-color);
}

.expertise-col-1 .work-item-accent,
.expertise-col-2 .work-item-accent,
.expertise-col-3 .work-item-accent {
    border-color: rgba(255, 255, 255, 0.3);
}

.expertise-col-1 .work-item-inner:hover .work-item-accent,
.expertise-col-2 .work-item-inner:hover .work-item-accent,
.expertise-col-3 .work-item-inner:hover .work-item-accent {
    border-color: var(--primary-color);
}

@media (max-width: 992px) {
    .expertise-col-1, .expertise-col-2, .expertise-col-3 {
        margin-top: 0;
    }
}


/* Sections */
.bg-light { background-color: var(--light-bg); }

.section-title-wrap {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .section-title-wrap { margin-bottom: 4rem; }
}

.line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1.5rem 0;
}

.line.centered { margin: 1.5rem auto; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.4rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary.btn-dark-hover:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* About Section */
.about-text {
    padding-right: 5rem;
}

@media (max-width: 992px) {
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    .about-text .line { margin-left: auto; margin-right: auto; }
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10rem 0 5rem;
}

footer .navbar-brand {
    color: var(--white);
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-desc {
    max-width: 400px;
    color: #888;
}

@media (max-width: 768px) {
    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

footer h5 {
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    margin-bottom: 2.5rem;
    opacity: 0.5;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 1.2rem;
}

footer ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 8rem;
    padding-top: 3rem;
    border-top: 1px solid #1A1A1A;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #444;
    text-transform: uppercase;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-bottom a:visited {
    color: #888;
}

.footer-bottom a:visited:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 6rem 0 3rem;
    }
    footer .col-md-3, footer .col-md-6 {
        margin-bottom: 5rem;
    }
    footer .col-md-3:last-child { margin-bottom: 0; }
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        margin-top: 4rem;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

textarea.form-control {
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid transparent;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Contact Sidebar */
.contact-info-card {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.contact-info-card p {
    color: #ccc;
    font-weight: 400;
    margin-bottom: 3rem;
}

.contact-info-card p:last-of-type {
    margin-bottom: 0;
}

.view-map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 3rem;
    display: inline-block;
    transition: var(--transition);
}

.view-map-link:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Utilities */
.subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 4rem; }
.mb-4 { margin-bottom: 3rem; }
.mb-5 { margin-bottom: 5rem; }

@media (max-width: 768px) {
    .mt-5 { 
        margin-top: 3rem;
        display: flex;
        justify-content: center;
    }
}

.image-placeholder-wrap {
    position: relative;
    aspect-ratio: 1/1;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, box-shadow;
}

.image-placeholder-wrap .image-box-accent {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border: 15px solid var(--primary-color);
    z-index: -1;
    /* Static - no hover animation */
}

.image-wrap-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    position: relative;
    z-index: 1;
}

.image-wrap-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: 5;
}

.image-wrap-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transition: var(--transition);
    z-index: 5;
}

.image-placeholder-wrap:hover .image-wrap-inner::before {
    height: 100%;
}

.image-placeholder-wrap:hover .image-wrap-inner::after {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
}

.image-placeholder-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-placeholder-wrap:hover img {
    transform: scale(1.05); /* More subtle scale */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10,10,10,0.1) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
}

.image-placeholder-wrap:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .image-placeholder-wrap .image-box-accent {
        display: none;
    }
    
    .image-placeholder-wrap {
        margin: 4rem auto 2rem;
        width: 85%;
        aspect-ratio: 1/1;
        position: relative;
    }

    .image-placeholder-wrap::before {
        content: '';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 100%;
        height: 100%;
        border: 2px solid var(--primary-color);
        z-index: 0;
    }
    
    .image-wrap-inner {
        z-index: 1;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    
    .image-placeholder-wrap:active .image-wrap-inner,
    .image-placeholder-wrap.is-active .image-wrap-inner {
        transform: scale(0.98);
        filter: brightness(1.1);
    }

    .image-placeholder-wrap.is-active .image-wrap-inner {
        transform: scale(1.02); /* Slight grow on toggle */
    }

    .image-placeholder-wrap:active::before,
    .image-placeholder-wrap.is-active::before {
        transform: translate(-10px, -10px);
        border-width: 4px;
    }

    .image-placeholder-wrap.is-active::before {
        transform: translate(10px, 10px);
        border-color: var(--secondary-color); /* Change color on toggle */
    }

    .image-placeholder-wrap .image-wrap-inner,
    .image-placeholder-wrap::before {
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
}

/* Contact Page Specific Styles */

/* --- Form Card --- */
.contact-form-card {
    position: relative;
    padding: 1.5rem 4rem 1.5rem 4rem;
    box-shadow: var(--form-shadow);
    background: white;
    height: auto;
}

/* --- Input Wrapper with Animated Focus Bar --- */
.input-wrap {
    position: relative;
}

.input-focus-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.minimalist-input:focus ~ .input-focus-bar {
    width: 100%;
}

.custom-form-group {
    margin-bottom: 2rem;
}

.minimalist-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 1rem 0 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
}

.minimalist-input:focus {
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    outline: none;
}

.minimalist-input::placeholder {
    color: #aaa;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.minimalist-input:focus::placeholder {
    opacity: 0.5;
}

/* Input Error State */
.input-wrap.has-error .minimalist-input {
    border-bottom-color: #f44336 !important;
}

.input-wrap.has-error .input-focus-bar {
    background: #f44336;
    width: 100%;
}

.input-wrap.has-error .minimalist-input::placeholder {
    color: #ef9a9a;
}

/* Field Error Message */
.field-error-message {
    display: block;
    font-size: 0.75rem;
    color: #f44336;
    margin-top: 0.3rem;
    min-height: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.input-wrap.has-error .field-error-message {
    opacity: 1;
}

/* Required Field Indicator */
.required-indicator {
    color: #f44336;
    font-weight: 700;
    margin-left: 2px;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.char-counter span {
    font-weight: 700;
}

/* --- Custom Branded Alerts --- */
.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

/* Full-width button */
.btn-block {
    width: 100%;
    justify-content: center;
}
.alert-custom .alert-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.alert-custom .alert-content h4 {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.alert-custom .alert-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.alert-success-custom {
    background-color: #f6faf6;
    border-color: #c8e6c9;
    color: #1b5e20;
}

.alert-success-custom::before {
    background: #4caf50;
}

.alert-success-custom .alert-icon {
    color: #4caf50;
}

.alert-success-custom .alert-content h4 {
    color: #1b5e20;
}

.alert-success-custom .alert-content p {
    color: #2e7d32;
}

.alert-danger-custom {
    background-color: #fef6f5;
    border-color: #ffcdd2;
    color: #b71c1c;
}

.alert-danger-custom::before {
    background: #f44336;
}

.alert-danger-custom .alert-icon {
    color: #f44336;
}

.alert-danger-custom .alert-content h4 {
    color: #b71c1c;
}

.alert-danger-custom .alert-content p {
    color: #c62828;
}

/* --- Submit Button with Animation --- */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.4rem 3rem;
    overflow: hidden;
    position: relative;
}

.btn-submit .btn-icon {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
}

.btn-submit:hover .btn-icon {
    transform: translateX(6px);
}

.btn-submit .btn-loading {
    display: none;
    align-items: center;
    gap: 0.8rem;
}

.btn-submit.is-loading .btn-text,
.btn-submit.is-loading .btn-icon {
    display: none;
}

.btn-submit.is-loading .btn-loading {
    display: inline-flex;
}

/* Custom Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Info Card Enhancements --- */
.info-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.info-item p {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.info-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.2);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-info-card:hover .info-icon-wrap {
    background: rgba(255, 184, 0, 0.2);
    border-color: var(--primary-color);
}

/* --- Social Links (Fixed Visibility) --- */
.info-item-social {
    border-bottom: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #999 !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 0.4rem 0;
}

.social-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.social-link:hover i {
    color: var(--primary-color);
}

/* --- Map Styles --- */
.contact-map-wrap {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    background: #1a1a1a;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.map-placeholder:hover {
    background: #222;
}

.map-overlay-content {
    text-align: center;
    color: #888;
}

.map-overlay-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: block;
}

.map-overlay-content p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-map-load {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-map-load:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.map-container {
    line-height: 0;
}

.map-container iframe {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .contact-page {
        padding-top: 8rem !important;
    }
    .contact-page .work-item-inner {
        padding: 3rem 2rem !important;
    }

    .contact-info-card {
        padding: 3rem 2rem !important;
    }

    .info-item {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }

    .social-links {
        flex-direction: row;
        gap: 1.5rem;
    }

    .social-link span {
        display: none;
    }

    .social-link i {
        font-size: 1.3rem;
        width: auto;
    }

    .social-link:hover {
        padding-left: 0;
    }
}

/* Capabilities Section */
.capabilities-section {
    padding-bottom: 10rem;
}

.capability-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: 2;
}

.capability-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}

.capability-card:hover::before {
    height: 100%;
}

.capability-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.capability-card:hover .capability-image img {
    transform: scale(1.08);
}

.capability-info {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.capability-info .work-item-cat {
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.capability-info h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.4;
    color: var(--secondary-color);
}

.capability-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transition: var(--transition);
}

.capability-card:hover .capability-accent {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transition: var(--transition);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.line-grow {
    width: 0 !important;
    transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.line-grow.is-visible {
    width: 60px !important;
}

.line-grow.centered.is-visible {
    width: 60px !important;
}

/* Hero Content Animation */
.hero-content .hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0s;
}

.hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.15s;
}

.hero-content .hero-btns {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Curtain Reveal */
.image-placeholder-wrap.unveil-effect {
    position: relative;
    overflow: hidden;
}

.image-placeholder-wrap.unveil-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 3;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: left;
    pointer-events: none; /* Prevent blocking hover during animation */
}

.image-placeholder-wrap.unveil-effect.is-visible::after {
    transform: scaleX(0);
}

.image-placeholder-wrap.unveil-effect img {
    opacity: 0;
    transition: opacity 0.1s linear 0.6s, transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-placeholder-wrap.unveil-effect.is-visible img {
    opacity: 1;
}

/* Staggered delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .reveal-up {
        transform: translateY(20px); /* Smaller movement on mobile */
    }
    
    .stagger-1, .stagger-2, .stagger-3 {
        transition-delay: 0.05s; /* Faster staggered entry on mobile */
    }
}

/* Final CTA Section */
.final-cta-section {
    background-color: var(--secondary-color);
    padding: 12rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta-section .text-white {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.final-cta-section .text-muted {
    color: #888 !important;
}

.final-cta-section::after {
    content: 'V';
    position: absolute;
    bottom: -5rem;
    left: 2rem;
    font-size: 30rem;
    font-weight: 900;
    color: rgba(255, 184, 0, 0.03);
    pointer-events: none;
    line-height: 1;
}

@media (max-width: 768px) {
    .final-cta-section {
        padding: 8rem 0;
    }
}

/* Attention-grabbing CTA button */
.btn-attention {
    position: relative;
    overflow: visible;
    animation: btnPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.5);
}

.btn-attention::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: btnRingExpand 2.5s ease-in-out infinite 0.4s;
    pointer-events: none;
    z-index: 0;
}

.btn-attention::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, 
        transparent 40%, 
        rgba(255, 255, 255, 0.2) 45%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.2) 55%, 
        transparent 60%);
    background-size: 200% 100%;
    animation: btnShimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.btn-attention:hover {
    animation: none;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 184, 0, 0.35), 0 0 70px rgba(255, 184, 0, 0.15);
    background: var(--primary-color);
}

.btn-attention:hover::before {
    animation: none;
    opacity: 1;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-color: var(--primary-color);
    transition: all 0.35s ease;
}

.btn-attention:hover::after {
    animation: btnShimmer 1.2s ease-in-out infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 15px 8px rgba(255, 184, 0, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.5);
    }
}

@keyframes btnRingExpand {
    0% {
        opacity: 0;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-color: rgba(255, 184, 0, 0.6);
    }
    50% {
        opacity: 0.7;
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        border-color: rgba(255, 184, 0, 0.05);
    }
    100% {
        opacity: 0;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-color: rgba(255, 184, 0, 0.6);
    }
}

@keyframes btnShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Attention-grabbing outline button for hero */
.btn-attention-outline {
    position: relative;
    overflow: visible;
    animation: btnOutlinePulse 2.5s ease-in-out infinite;
}

.btn-attention-outline::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    animation: btnOutlineRing 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.btn-attention-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, 
        transparent 40%, 
        rgba(255, 255, 255, 0.1) 45%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.1) 55%, 
        transparent 60%);
    background-size: 200% 100%;
    animation: btnShimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.btn-attention-outline:hover {
    animation: none;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 50px rgba(255, 255, 255, 0.12);
    background: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
}

.btn-attention-outline:hover::before {
    animation: none;
    opacity: 1;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-color: rgba(255, 255, 255, 0.6);
    transition: all 0.35s ease;
}

.btn-attention-outline:hover::after {
    animation: btnShimmer 1.2s ease-in-out infinite;
}

@keyframes btnOutlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 0 0 12px 6px rgba(255, 255, 255, 0.12);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
    }
}

@keyframes btnOutlineRing {
    0% {
        opacity: 0;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 0.7;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        border-color: rgba(255, 255, 255, 0.05);
    }
    100% {
        opacity: 0;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* ============================================
   404 Error Page
   ============================================ */

.error-page-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.error-section {
    width: 100%;
    padding: 12rem 0 10rem;
    position: relative;
    z-index: 2;
}

.error-content {
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Large background number */
.error-bg-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(20rem, 50vw, 40rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
    animation: errorBgPulse 4s ease-in-out infinite;
}

@keyframes errorBgPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.02;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.04;
    }
}

/* Status badge */
.error-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.2);
    padding: 0.6rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    animation: errorFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.error-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: errorDotPulse 1.5s ease-in-out infinite;
}

@keyframes errorDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* Decorative line */
.error-line {
    width: 0;
    height: 2px;
    background: var(--primary-color);
    margin: 0 auto 3rem;
    animation: errorLineGrow 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

@keyframes errorLineGrow {
    to { width: 80px; }
}

/* Main 404 title */
.error-title {
    display: flex;
    justify-content: center;
    gap: 0.15em;
    margin-bottom: 1.5rem;
    perspective: 800px;
}

.error-title-digit {
    display: inline-block;
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px var(--primary-color);
    text-stroke: 3px var(--primary-color);
    letter-spacing: -0.03em;
    opacity: 0;
    transform: rotateX(-90deg);
    animation: errorDigitDrop 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.error-title-digit:nth-child(1) { animation-delay: 0.5s; }
.error-title-digit:nth-child(2) { animation-delay: 0.7s; }
.error-title-digit:nth-child(3) { animation-delay: 0.9s; }

@keyframes errorDigitDrop {
    0% {
        opacity: 0;
        transform: rotateX(-90deg) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg) translateY(0);
    }
}

/* Hover effect on digits */
.error-title-digit:hover {
    color: var(--primary-color);
    -webkit-text-stroke: 3px transparent;
    text-stroke: 3px transparent;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

/* Subtitle */
.error-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.4em;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: errorFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
}

@keyframes errorFadeIn {
    to { opacity: 1; }
}

/* Description */
.error-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 550px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0;
    animation: errorFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.3s forwards;
}

/* Action buttons */
.error-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: errorFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 1.5s forwards;
}

.error-btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.error-btn-home i {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.error-btn-home:hover i {
    transform: translateX(-4px);
}

.error-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--white) !important;
    background: transparent;
}

.error-btn-contact:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.error-btn-contact i {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.error-btn-contact:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .error-section {
        padding: 10rem 0 6rem;
    }

    .error-title-digit {
        -webkit-text-stroke: 2px var(--primary-color);
        text-stroke: 2px var(--primary-color);
    }

    .error-subtitle {
        letter-spacing: 0.2em;
    }

    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .error-btn-home,
    .error-btn-contact {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .error-title-digit {
        font-size: clamp(4rem, 25vw, 6rem);
        -webkit-text-stroke: 2px var(--primary-color);
        text-stroke: 2px var(--primary-color);
    }

    .error-badge {
        font-size: 0.6rem;
        padding: 0.5rem 1.2rem;
    }

    .error-description {
        font-size: 0.95rem;
    }
}


/* ============================================
   Portfolio Page
   ============================================ */

/* Filter Bar */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.9rem 2.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.filter-btn:hover::before {
    height: 100%;
}

.filter-btn.is-active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.filter-btn.is-active::before {
    height: 100%;
}

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

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .portfolio-filters {
        gap: 0.6rem;
        margin-bottom: 3.5rem;
    }
    .filter-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
}

/* Portfolio Item */
.portfolio-item {
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item.is-filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
}

.portfolio-item.is-filtered-in {
    opacity: 1;
    transform: scale(1);
}

/* Portfolio Card */
.portfolio-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: 2;
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

.portfolio-card:hover::before {
    height: 100%;
}

/* Portfolio Image */
.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image-overlay {
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.portfolio-accent-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    z-index: 2;
    letter-spacing: -0.03em;
    opacity: 0.85;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-accent-num {
    opacity: 1;
    transform: scale(1.1);
}

/* Portfolio Info */
.portfolio-info {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (max-width: 576px) {
    .portfolio-info {
        padding: 2rem 1.5rem;
    }
}

.portfolio-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-info h3 {
    color: var(--secondary-color);
}

.portfolio-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tech Tags */
.portfolio-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    background: var(--light-bg);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-card:hover .tech-tag {
    border-color: #d0d0d0;
}

/* Portfolio Link */
.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
}

.portfolio-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.portfolio-link:hover {
    color: var(--primary-color);
    gap: 1.2rem;
}

.portfolio-link:hover::after {
    width: 100%;
}

.portfolio-link i {
    font-size: 0.75rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-link:hover i {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Portfolio Card Accent */
.portfolio-card-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-card-accent {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
}

/* Stats Section */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

@media (max-width: 992px) {
    .portfolio-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
}

@media (max-width: 576px) {
    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    line-height: 1;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.8rem;
}
