/* Header Styles */
.top-header {
    text-align: center;
    padding: 10px;
}

.top-header img {
    max-width: 100%;
    height: auto;
}

.top-header h3 {
    font-size: 18px;
    padding: 0 15px;
    margin: 10px 0;
}

/* Nav Menu */
.navbar-nav li:hover > ul.dropdown-menu {
    display: inline-block;
    color: black;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
}

.dropdown-menu > li > a:hover:after {
    text-decoration: none;
    transform: rotate(-90deg);
    color: black;
}

/* Project Cards Container */
.projcard-container {
    margin: 50px auto;
    max-width: 1000px;
    padding: 0 20px;
    box-sizing: border-box;
}

.projcard-container,
.projcard-container * {
    box-sizing: border-box;
}

/* Project Card */
.projcard {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    margin-bottom: 50px;
    border-radius: 10px;
    background-color: #fff;
    border: 2px solid #ddd;
    font-size: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, .66);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.projcard:hover {
    box-shadow: 0 34px 32px -33px rgba(0, 0, 0, .18);
    transform: translate(0px, -3px);
}

.projcard::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(-70deg, #424242, transparent 50%);
    opacity: 0.07;
}

.projcard:nth-child(2n)::before {
    background-image: linear-gradient(-250deg, #424242, transparent 50%);
}

.projcard-innerbox {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.projcard-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.projcard:nth-child(2n) .projcard-innerbox {
    flex-direction: row-reverse;
}

.projcard:hover .projcard-img {
    transform: scale(1.05) rotate(1deg);
}

.projcard:hover .projcard-bar {
    width: 80px;
}

.projcard-textbox {
    flex: 1;
    padding: 30px;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 280px;
}

.projcard-textbox * {
    position: relative;
}

.projcard-title {
    font-family: 'Voces', 'Open Sans', arial, sans-serif;
    font-size: 40px;
}

.projcard-subtitle {
    font-family: 'Voces', 'Open Sans', arial, sans-serif;
    color: #888;
    font-size: 25px;
}

.projcard-bar {
    width: 50px;
    height: 5px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #424242;
    transition: width 0.2s ease;
}

/* Card Color Variants */
.projcard-blue .projcard-bar { background-color: gold; }
.projcard-blue::before { background-image: linear-gradient(-70deg, #D62F1F, transparent 50%); }
.projcard-blue:nth-child(2n)::before { background-image: linear-gradient(-250deg, #0088FF, transparent 50%); }

.projcard-red .projcard-bar { background-color: gold; }
.projcard-red::before { background-image: linear-gradient(-70deg, #D62F1F, transparent 50%); }
.projcard-red:nth-child(2n)::before { background-image: linear-gradient(-250deg, #D62F1F, transparent 50%); }

.projcard-green .projcard-bar { background-color: gold; }
.projcard-green::before { background-image: linear-gradient(-70deg, #D62F1F, transparent 50%); }
.projcard-green:nth-child(2n)::before { background-image: linear-gradient(-250deg, #40BD00, transparent 50%); }

.projcard-yellow .projcard-bar { background-color: gold; }
.projcard-yellow::before { background-image: linear-gradient(-70deg, #F5AF41, transparent 50%); }
.projcard-yellow:nth-child(2n)::before { background-image: linear-gradient(-250deg, #F5AF41, transparent 50%); }

.projcard-orange .projcard-bar { background-color: gold; }
.projcard-orange::before { background-image: linear-gradient(-70deg, #FF5722, transparent 50%); }
.projcard-orange:nth-child(2n)::before { background-image: linear-gradient(-250deg, #FF5722, transparent 50%); }

.projcard-brown .projcard-bar { background-color: gold; }
.projcard-brown::before { background-image: linear-gradient(-70deg, #C49863, transparent 50%); }
.projcard-brown:nth-child(2n)::before { background-image: linear-gradient(-250deg, #C49863, transparent 50%); }

.projcard-grey .projcard-bar { background-color: #424242; }
.projcard-grey::before { background-image: linear-gradient(-70deg, #424242, transparent 50%); }
.projcard-grey:nth-child(2n)::before { background-image: linear-gradient(-250deg, #424242, transparent 50%); }

.projcard-customcolor .projcard-bar { background-color: var(--projcard-color); }
.projcard-customcolor::before { background-image: linear-gradient(-70deg, var(--projcard-color), transparent 50%); }
.projcard-customcolor:nth-child(2n)::before { background-image: linear-gradient(-70deg, #D62F1F, transparent 50%); }

.projcard-description {
    z-index: 10;
    font-size: 18px;
    color: #424242;
    max-height: 250px;
    overflow: auto;
    line-height: 1.6;
}

.projcard-tagbox {
    font-size: 14px;
    cursor: default;
    user-select: none;
    pointer-events: none;
    margin-top: 15px;
}

.projcard-tag {
    display: inline-block;
    background: #E0E0E0;
    color: #777;
    border-radius: 3px 0 0 3px;
    line-height: 26px;
    padding: 0 10px 0 23px;
    position: relative;
    margin-right: 20px;
    cursor: default;
    user-select: none;
    transition: color 0.2s;
}

.projcard-tag::before {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
    height: 6px;
    left: 10px;
    width: 6px;
    top: 10px;
}

.projcard-tag::after {
    content: '';
    position: absolute;
    border-bottom: 13px solid transparent;
    border-left: 10px solid #E0E0E0;
    border-top: 13px solid transparent;
    right: -10px;
    top: 0;
}

.projcard-button {
    margin-top: 20px;
}

button {
    font-size: 20px;
    background-color: black;
    color: gold;
    font-style: italic;
    font-family: 'Geraldine Personal Use', cursive;
    text-align: center;
    font-weight: 900;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: gold;
    color: black;
}

/* Tablet Responsive */
@media only screen and (max-width: 992px) {
    .projcard {
        min-height: auto;
    }
    
    .projcard-innerbox {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .projcard-img {
        width: 100%;
        height: 300px;
    }
    
    .projcard-textbox {
        padding: 25px;
    }
    
    .projcard-title {
        font-size: 32px;
    }
    
    .projcard-subtitle {
        font-size: 20px;
    }
    
    .projcard-description {
        font-size: 16px;
        max-height: none;
    }
}

/* Mobile Responsive */
@media only screen and (max-width: 768px) {
    .top-header h3 {
        font-size: 14px;
    }
    
    .projcard-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .projcard {
        margin-bottom: 30px;
    }
    
    .projcard-img {
        height: 250px;
    }
    
    .projcard-textbox {
        padding: 20px;
    }
    
    .projcard-title {
        font-size: 26px;
    }
    
    .projcard-subtitle {
        font-size: 18px;
    }
    
    .projcard-description {
        font-size: 14px;
    }
    
    button {
        font-size: 16px;
        padding: 10px 20px;
        width: 100%;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}

/* Small Mobile */
@media only screen and (max-width: 480px) {
    .top-header h3 {
        font-size: 12px;
    }
    
    .projcard-img {
        height: 200px;
    }
    
    .projcard-textbox {
        padding: 15px;
    }
    
    .projcard-title {
        font-size: 22px;
    }
    
    .projcard-subtitle {
        font-size: 16px;
    }
    
    .projcard-description {
        font-size: 13px;
    }
}
