﻿body {
    background-color: #0c0d3c;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: start;
    min-height: 100vh;
    margin: 0;
    padding: 40px;
    box-sizing: border-box;
    overflow-x: hidden; /* ✅ Added to prevent scroll */
}

.main-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.page-header {
    width: 100%;
    color: #f8fafc;
    margin-bottom: 1%;
}

    .page-header h1 {
        font-size: 3rem;
        margin-bottom: -10px;
        color: white;
    }

.header-left h1 {
    font-size: 3rem;
    margin: 0 0 0 -10px;
    color: white;
}

.header-left p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 6px; /* Add vertical gap between items */
    margin-top:1%;
}

.header-small-text {
    font-size: 14px;
    color: whitesmoke;
    word-break: break-word; /* Ensures long words break */
    max-width: 100%; /* Prevents overflow */
    white-space: normal; /* Allows wrapping */
}

.page-header p {
    font-size: 1.2rem;
    color: #cbd5e1;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1600px;
    margin: 0 auto; /* ✅ Correct centering */
    box-sizing: border-box;
    box-sizing: border-box;
}

    .header-row p {
        font-size: 1.2rem;
        color: #cbd5e1;
        margin: 0;
        max-width: 1000px;
        flex: 1;
    }

.linkedin-link {
    color: #93c5fd;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

    .linkedin-link:hover {
        color: #93c5fd;
        text-decoration: underline;
    }

    .linkedin-link:visited {
        color: #60a5fa; /* Visited color */
    }

    .linkedin-link:active {
        color: #60a5fa; /* Active color */
    }


.app-section {
    margin-bottom: 80px;
}

.section-header {
    max-width: 1600px;
}

    .section-header h3 {
        font-size: 2rem;
        font-weight: 300;
        color: orange;
        margin-bottom: 0.3em; /* Reduce space below the heading */
    }

    .section-header p {
        font-size: 1rem;
        color: aliceblue;
        margin: 0;
        margin: -5px 0px 2% 0px;
    }

.carousel {
    position: relative;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    /*filter: brightness(1.5);*/ /* Makes them easier to see on dark backgrounds */
    background-color: #000; /* Black background */
    color: #fff; /* White icon color */
    border-radius: 50%; /* Circular button */
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    border: 2px solid black;
    opacity: 1;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

    /* Change icon using a mask or pseudo-element (FontAwesome example) */
    .carousel-control-prev-icon::after {
        content: '\f060'; /* FontAwesome left arrow */
        font-family: "Font Awesome 6 Free";
        font-weight: 700;
        font-size: 1em;
        color: #fff;
        display: block;
        width: 100%;
        text-align: center;
    }

    .carousel-control-next-icon::after {
        content: '\f061'; /* FontAwesome right arrow */
        font-family: "Font Awesome 6 Free";
        font-weight: 700;
        font-size: 1em;
        color: #fff;
        display: block;
        width: 100%;
        text-align: center;
    }

/* Remove default background-image if present */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
}



.carousel-inner {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    transition: transform 0.6s ease;
}

    .carousel-item img {
        width: 100%;
        height: 330px; /* Set your desired fixed height */
        object-fit: cover; /* Ensures the image covers the area without distortion */
        display: block;
    }


/* Grid layout for cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    box-sizing: border-box;
    z-index: 1;
}


.card.vertical:hover {
    transform: scale(1.13);
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1)
}

/* Card container */
.card.vertical {
    display: flex;
    flex-direction: column;
    background: radial-gradient( circle at top right, rgba(251, 191, 36, 0.35) 0%, #1e1e2f 60% );
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(251, 191, 36, 0.1);
    color: white;
    overflow: hidden;
    margin: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
    margin-bottom:2%;
}

.card-banner {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 0;
}


/* Card content */
.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.app-title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Category hashtags */
.categories {
    color: orange;
    font-weight: 600;
    margin-bottom:5%
}

    .categories span {
        /*background-color: #2a2a3d;*/
        background-color: rgba(42, 42, 61); /* 0.7 = 70% opacity */
        padding: 2px 0px;
        border-radius: 12px;
        font-size: 0.75rem;
        margin-right: 6px;
        display: inline-block;
        margin-bottom: 1%;
        z-index:1;
    }

/* Description */
.description {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 26px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deeper-dive {
    margin-top: auto;

}


/* Launch button */
/* Push button to the bottom */
.launch-button {
    margin-bottom: 22px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    /*background-color: #fbbf24;*/
    background-color: lightcyan;
    color: #1e1e2f;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 70%;
    align-self: center;
    text-align: center;
    text-decoration: none;
}

    .launch-button:hover {
        background-color: aqua;
        transform: translateY(-1px);
        color: #1e1e2f;
    }

.linkedIn-Article-P {
    margin-bottom:40px;
}

.linkedIn-Article-Url {
    color: orange;
    text-decoration: none;
}

    .linkedIn-Article-Url:hover {
        color: aqua;
        text-decoration: none;
    }


/* Responsive tweaks for smaller screens */
@media (max-width: 600px) {
    .card-thumbnail img {
        width: 100%;
        height: auto;
        border-radius: 10px 10px 0 0;
    }

    .card-content {
        padding: 15px;
    }

    .launch-button {
        width: 100%;
    }

    .header-right {
        margin-top: 20px;
        align-content: flex-start;
        align-items: flex-start; /* Left align items */
        flex-wrap: wrap;         /* Allow wrapping */
    }
    .header-right::before {
        content: '';
    }

    .header-right .header-small-text {
        flex:none;
        flex-wrap: wrap; /* Allow wrapping */
    }

    .section-header {
        margin-bottom:8%;
    }
}

@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-right {
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .header-right {
        margin-top: 20px;
        align-content: flex-start;
        align-items: flex-start; /* Left align items */
        flex-wrap: wrap; /* Allow wrapping */
    }
}



/* Blue theme */
.card.theme-blue {
    background: radial-gradient( circle at top right, rgba(59, 130, 246, 0.5) 0%, #1e1e2f 60% );
}

/* Green theme */
.card.theme-green {
    background: radial-gradient( circle at top right, rgba(34, 197, 94, 0.5) 0%, #1e1e2f 60% );
}

/* Violet theme */
.card.theme-violet {
    background: radial-gradient( circle at top right, rgba(168, 85, 247, 0.5) 0%, #1e1e2f 60% );
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: moveBlob 60s ease-in-out infinite alternate;
    will-change: transform;
}

.blob1 {
    top: -100px;
    left: -100px;
    background: rgba(59,130,246,1);
    animation-delay: 0s;
    animation: moveBlob 70s ease-in-out infinite alternate;
}

.blob2 {
    bottom: -100px;
    right: -100px;
    background: rgba(34,197,94,1);
    animation-delay: 6s;
    animation: moveBlob 80s ease-in-out infinite alternate;
}

.blob3 {
    top: 0;
    left: 50%;
    background: rgba(168, 85, 247, 1);
    animation-delay: 12s;
    animation: moveBlob 90s ease-in-out infinite alternate;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(500px, -300px) scale(1.4);
    }

    50% {
        transform: translate(-600px, 400px) scale(1.7);
    }

    75% {
        transform: translate(300px, 300px) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(-50%, 0) scale(1);
    }

    20% {
        transform: translate(-40%, 80px) scale(1.2);
    }

    40% {
        transform: translate(-60%, -60px) scale(1.1);
    }

    60% {
        transform: translate(-45%, 100px) scale(1.3);
    }

    80% {
        transform: translate(-55%, -40px) scale(0.95);
    }

    100% {
        transform: translate(-50%, 20px) scale(1);
    }
}

@keyframes floatBlobXY {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.2);
    }

    50% {
        transform: translate(-100px, 80px) scale(1.1);
    }

    75% {
        transform: translate(60px, 100px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}
