/* 
    Mr. Triple R Portfolio - Premium Gaming Aesthetic
    Color Palette: 
    Background: #0f0f1a (Deep Dark Purple)
    Primary: #8b5cf6 (Vibrant Purple)
    Secondary: #a78bfa (Soft Purple)
    Accent: #c084fc (Pinkish Purple)
*/

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

:root {
    --bg-color: #0f0f1a;
    --bg-darker: #080810;
    --primary-color: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary-color: #a78bfa;
    --accent-color: #c084fc;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-title span {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    position: relative;
}

.loader-circle {
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    /* Replace with your actual logo size */
    max-height: 65px;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* Custom Cursor */
.cursor-dot,
.cursor-glow {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 45px;
    /* Standard height for navbar */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.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%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: white;
}

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 10s infinite alternate;
}

.gradient-sphere-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title span {
    color: var(--primary-color);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: characterFloat 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 1;
}

@keyframes characterFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mouse-icon {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-card {
    padding: 10px;
    position: relative;
    z-index: 2;
}

.about-avatar {
    border-radius: 15px;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Network Section */
.network {
    background: var(--bg-darker);
}

.network-links {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.network-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition);
    text-align: center;
    min-width: 180px;
    flex: 1;
}

.network-img-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: var(--transition);
}

.network-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.network-name {
    font-size: 1.2rem;
    /* Slightly smaller to fit "Official Website" */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
    /* Prevents wrapping */
}

.network-name i {
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 20px;
    /* Fixed width for consistent alignment */
    text-align: center;
}

.network-stats {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.network-item:hover .network-img-circle {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
}

.network-item:hover .network-name {
    color: var(--primary-color);
}

/* Videos Section */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.video-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Social Section */
.social {
    background: var(--bg-darker);
    overflow: hidden;
}

.social-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(100px);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.social-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-card i {
    font-size: 3rem;
}

.social-card.youtube:hover {
    color: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.social-card.facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.2);
}

.social-card.instagram:hover {
    color: #e4405f;
    border-color: #e4405f;
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.2);
}

.social-card.discord:hover {
    color: #5865f2;
    border-color: #5865f2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo-img {
    height: 60px;
    /* Slightly larger in footer */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: var(--transition);
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-reveal {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-image-wrap {
        order: -1;
    }

    .hero-image {
        max-width: 350px;
    }

    .hero-description {
        margin: 0 auto 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Modal Modern Layout */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-card {
    display: flex;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-card {
    transform: scale(1);
}

.lightbox-img-area {
    flex: 1.4;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-info-area {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

#lightbox-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.lightbox-divider {
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

#lightbox-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    overflow-y: auto;
}

.lightbox-actions {
    margin-top: auto;
}

.btn-sm {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
}

@media (max-width: 992px) {
    .lightbox-card {
        flex-direction: column;
        max-height: 90vh;
    }

    .lightbox-img-area {
        flex: none;
        height: 50%;
    }

    .lightbox-info-area {
        padding: 2rem;
    }
}

/* Custom Context Menu */
.custom-context-menu {
    position: fixed;
    z-index: 10001;
    width: 220px;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
    animation: menuFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.context-menu-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.context-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.context-menu-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
    padding-left: 25px;
}

.context-menu-item:hover i {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.context-menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 15px;
}

/* Gaming Journey Grid */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.journey-card {
    padding: 3rem 2rem;
    position: relative;
    text-align: center;
    transition: var(--transition);
    border-radius: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Connecting Lines for Grid */
@media (min-width: 1200px) {
    .journey-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 40px; /* Aligned with badge center */
        right: -2rem; /* Half of the gap */
        width: 2rem;
        height: 2px;
        background: linear-gradient(to right, var(--primary-color), rgba(139, 92, 246, 0.1));
        border-bottom: 2px dashed var(--primary-color);
        z-index: -1;
        opacity: 0.5;
    }
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent);
    border-radius: inherit;
    pointer-events: none;
}

.journey-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.journey-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: -0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journey-type i {
    font-size: 0.9rem;
}

.journey-footer {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.journey-footer i {
    color: var(--primary-color);
}

.journey-year-badge {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 800;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px var(--primary-glow);
    letter-spacing: 1px;
}

.journey-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.journey-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connect lines (decorative for desktop) */
@media (min-width: 1200px) {
    .journey-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}