/* ==========================================================================
   Portfolio Landing Page Styles
   Theme Background: Deep Purple (#41388d)
   Fonts: Amatic SC, Averia Sans Libre
   ========================================================================== */

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

html, body {
    width: 100%;
    height: 100%;
    background-color: #41388d;
    font-family: 'Amatic SC', 'Averia Sans Libre', sans-serif;
    color: #111111;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Background */
#webgl-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Floral Pattern Overlay */
.bg-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('Main%20Screen/Background%20with%20a%20little%20blur%20and%2014%25%20opacity.png');
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
}

/* Main Layout Wrapper */
.main-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 36px 20px;
}

/* Logo Header */
.logo-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    user-select: none;
}

.logo-p {
    height: 185px;
    width: auto;
    position: absolute;
    left: -105px;
    top: -24px;
    z-index: 2;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
    transition: transform 0.4s ease;
}

.logo-ortfolio {
    height: 82px;
    width: auto;
    margin-left: 60px;
    z-index: 1;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
    transition: transform 0.4s ease;
}

.logo-wrapper:hover .logo-p {
    transform: scale(1.03) rotate(-2deg);
}

.logo-wrapper:hover .logo-ortfolio {
    transform: scale(1.02);
}

/* Portfolio Panels Container */
.portfolio-container {
    width: 100%;
    max-width: 1240px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Light Gray Rounded Panel Box */
.panel-box {
    background: #d8d8d8;
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Grid Layout for Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: flex-start;
}

/* Card Items */
.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #111111;
    border-radius: 12px;
    padding: 4px;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.top-card {
    justify-content: flex-start;
}

.bottom-card {
    justify-content: flex-start;
}

/* Card Titles */
.card-title {
    font-family: 'Amatic SC', cursive, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #151515;
    text-align: center;
    line-height: 1.0;
    margin-bottom: 8px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, transform 0.2s ease;
}

.bottom-card .card-title {
    margin-top: 8px;
    margin-bottom: 0;
}


/* Card Image Container */
.card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    background: #0d0d0d;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover Effects */
.card-item:hover {
    transform: translateY(-4px) scale(1.02);
}

.card-item:hover .card-image-wrap {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card-item:hover .card-img {
    transform: scale(1.04);
}

.card-item:hover .card-title {
    color: #000000;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
    .logo-wrapper {
        height: 120px;
    }
    .logo-p {
        height: 150px;
        left: -85px;
        top: -18px;
    }
    .logo-ortfolio {
        height: 65px;
        margin-left: 50px;
    }
    .card-title {
        font-size: 2.5rem;
    }
    .panel-box {
        padding: 14px 16px;
    }
    .cards-grid {
        gap: 14px;
    }
}

@media (max-width: 720px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .logo-wrapper {
        height: 100px;
    }
    .logo-p {
        height: 120px;
        left: -65px;
        top: -14px;
    }
    .logo-ortfolio {
        height: 52px;
        margin-left: 40px;
    }
    .card-title {
        font-size: 2.8rem;
    }
}
