/* Projects Page specific CSS */

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

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}
.brand-logo .dot { color: var(--accent-green); }

.nav-links {
    display: flex;
    gap: 35px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.syncopate-font {
    font-family: var(--font-heading);
}

.highlight-text {
    color: #fff;
    font-family: var(--font-body);
}

.cursive-text {
    font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
    color: #ff8c00; /* Orange CTA color */
    font-size: 3.5rem;
    font-weight: 300;
    text-transform: lowercase;
    margin-left: 20%;
    display: block;
    margin-top: -15px;
    letter-spacing: 0;
}

/* Hero Section */
.projects-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 150px;
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.ph-left h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: #b0b0b0;
    letter-spacing: -1px;
}

.ph-right {
    max-width: 450px;
    text-align: left;
}
.ph-right p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.solid-btn {
    background: #ff8c00;
    border: none;
    padding: 12px 35px;
    color: #fff;
    border-radius: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.solid-btn:hover {
    background: #e07b00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
}

/* CAROUSEL */
.projects-carousel {
    text-align: center;
    margin-bottom: 120px;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.carousel-title {
    font-size: 1.8rem;
    margin-bottom: 60px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}
.carousel-title span {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-body);
    margin-top: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 480px;
    position: relative;
    perspective: 1000px;
}

.carousel-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transition: 0.5s all cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    background: var(--glass-bg);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: 0.5s;
}

.carousel-card:hover img {
    filter: brightness(1.1);
}

/* CSS 3D Positions — now driven by JS; keep base card styling */
.carousel-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    background: var(--glass-bg);
    width: 320px;
    height: 460px;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: 0.5s;
}

.carousel-card:hover img {
    filter: brightness(0.5);
}

/* Card Overlay with Checkout */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}
.carousel-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}
.card-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.checkout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 30px;
    background: #ff8c00;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.checkout-btn:hover {
    background: #e07b00;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.arrow-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}
.arrow-btn:hover:not(.disabled) {
    background: #ff8c00;
    border-color: #ff8c00;
}
.arrow-btn.active {
    background: #ff8c00;
    border-color: #ff8c00;
}
.arrow-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ABOUT GALLERY */
.about-projects {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 120px;
}

.ap-left {
    flex: 1;
}
.ap-left h2 {
    font-size: 2.8rem;
    line-height: 1.1;
}
.ap-left .cursive-text {
    margin-left: 20%;
    font-size: 3rem;
    margin-top: -10px;
}

.ap-right {
    flex: 1.5;
    max-width: 600px;
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}
.ap-right .heavy-p {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
}
.ap-right .light-p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* FEATURED SECTION */
.bg-darker {
    background: #030403;
    padding: 100px 0;
    border-top: 1px solid rgba(0, 255, 102, 0.1);
    position: relative;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.featured-header h2 {
    font-size: 2.8rem;
    color: #e0e0e0;
}

.view-btn {
    border: 1px solid var(--glass-border);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    transition: 0.3s;
}
.view-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 30px;
}

.f-card {
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    background: #111;
    border: 1px solid var(--glass-border);
}
.f-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: brightness(0.85);
}
.f-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.f-card-1 { grid-column: span 1; grid-row: span 2; }
.f-card-2 { grid-column: span 2; grid-row: span 1; position: relative; overflow: hidden; background: #000; }
.f-card-2 img { border-radius: 20px; width: 90%; height: 90%; margin: 5%; object-fit: cover; }
.f-card-3 { grid-column: span 1; grid-row: span 1; }
.f-card-4 { grid-column: span 1; grid-row: span 1; }
.f-card-5 { grid-column: span 2; grid-row: span 1; }

.bg-watermark {
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    pointer-events: none;
    letter-spacing: -2px;
}

.pf-overlay {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    z-index: 3;
    opacity: 0;
    transition: 0.4s ease;
}
.pf-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--accent-green);
}
.pf-overlay p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.f-card:hover .pf-overlay { 
    opacity: 1; 
    bottom: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .projects-hero { flex-direction: column; align-items: flex-start; gap: 40px; }
    .ph-left h1 { font-size: 3rem; }
    .cursive-text { margin-left: 0; }
    .carousel-track { perspective: none; }
    .card-1, .card-5 { display: none; }
    .card-2 { transform: translateX(-150px) scale(0.8); }
    .card-4 { transform: translateX(150px) scale(0.8); }
    .featured-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .f-card-1 { grid-column: span 1; grid-row: span 1; height: 300px; }
    .f-card-2 { grid-column: span 2; height: 300px; }
    .f-card-5 { grid-column: span 2; height: 300px; }
}

@media (max-width: 768px) {
    .about-projects { flex-direction: column; gap: 40px; text-align: center; }
    .nav-links { display: none; }
    .featured-grid { grid-template-columns: 1fr; }
    .f-card-1, .f-card-2, .f-card-3, .f-card-4, .f-card-5 { grid-column: span 1; }
    .bg-watermark { font-size: 3rem; }
}
