/* ============================================
   HEXAGONAL GRID STYLES
   ============================================ */

/* Particles Background Containers */
.particles-container {
    position: absolute;
    width: 30%;
    height: 100%;
    top: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.particles-left {
    left: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
}

.particles-right {
    right: 0;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
}

/* Floating Technology Text Particles */
.floating-tech-text {
    position: absolute;
    font-size: 14px;
    font-family: 'Courier New', 'Consolas', monospace;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 8px currentColor;
    animation: textFloatAndFade 12s ease-in-out infinite;
    z-index: 1;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

@keyframes textFloatAndFade {
    0% {
        transform: translate(0, 0) rotate(-5deg) scale(0.7);
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    50% {
        transform: translate(
            calc(-20px + var(--float-x, 0px)), 
            calc(-80px + var(--float-y, 0px))
        ) rotate(5deg) scale(1);
        opacity: 0.9;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translate(
            calc(-40px + var(--float-x, 0px)), 
            calc(-160px + var(--float-y, 0px))
        ) rotate(-5deg) scale(0.7);
        opacity: 0;
    }
}

/* Add random float variations */
.floating-tech-text:nth-child(2n) {
    --float-x: 25px;
    --float-y: -40px;
}

.floating-tech-text:nth-child(3n) {
    --float-x: -30px;
    --float-y: 50px;
}

.floating-tech-text:nth-child(4n) {
    --float-x: 40px;
    --float-y: -25px;
}

.floating-tech-text:nth-child(5n) {
    --float-x: -20px;
    --float-y: 60px;
}

.floating-tech-text:nth-child(6n) {
    --float-x: 35px;
    --float-y: -50px;
}

.floating-tech-text:nth-child(7n) {
    --float-x: -40px;
    --float-y: 30px;
}

/* Ensure section has position relative for absolute positioning */
.technology-showcase-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 80px 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent 0%, 
        #3b82f6 15%, 
        #8b5cf6 35%,
        #ec4899 50%,
        #8b5cf6 65%, 
        #3b82f6 85%, 
        transparent 100%
    ) 1;
    box-shadow: 
        inset 0 1px 0 rgba(59, 130, 246, 0.3),
        inset 0 -1px 0 rgba(139, 92, 246, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* Decorative corner accents */
.technology-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.5) 50%, 
        transparent 100%
    );
    z-index: 2;
}

.technology-showcase-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.5) 50%, 
        transparent 100%
    );
    z-index: 2;
}

/* Ensure container content is above particles */
.technology-showcase-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header Styling */
.technology-showcase-section .section-header {
    position: relative;
    padding-bottom: 20px;
}

.technology-showcase-section .section-title {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e7ff 30%, 
        #c7d2fe 50%, 
        #a5b4fc 70%, 
        #818cf8 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }
}

/* Decorative line under title */
.technology-showcase-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #3b82f6 20%, 
        #8b5cf6 50%, 
        #ec4899 80%, 
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.technology-showcase-section .section-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-top: 25px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Decorative corner accents */
.section-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    z-index: 2;
    pointer-events: none;
}

.corner-top-left {
    top: 0;
    left: 0;
    border-top: 3px solid #3b82f6;
    border-left: 3px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    box-shadow: 
        inset 5px 5px 15px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.4);
}

.corner-top-right {
    top: 0;
    right: 0;
    border-top: 3px solid #8b5cf6;
    border-right: 3px solid #8b5cf6;
    background: linear-gradient(225deg, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    box-shadow: 
        inset -5px 5px 15px rgba(139, 92, 246, 0.3),
        0 0 30px rgba(139, 92, 246, 0.4);
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid #ec4899;
    border-left: 3px solid #ec4899;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    box-shadow: 
        inset 5px -5px 15px rgba(236, 72, 153, 0.3),
        0 0 30px rgba(236, 72, 153, 0.4);
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid #10b981;
    border-right: 3px solid #10b981;
    background: linear-gradient(315deg, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    box-shadow: 
        inset -5px -5px 15px rgba(16, 185, 129, 0.3),
        0 0 30px rgba(16, 185, 129, 0.4);
}

/* Corner animation */
.section-corner::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: cornerPulse 2s ease-in-out infinite;
}

.corner-top-left::before {
    top: -4px;
    left: -4px;
    background: #3b82f6;
    box-shadow: 0 0 20px #3b82f6;
}

.corner-top-right::before {
    top: -4px;
    right: -4px;
    background: #8b5cf6;
    box-shadow: 0 0 20px #8b5cf6;
}

.corner-bottom-left::before {
    bottom: -4px;
    left: -4px;
    background: #ec4899;
    box-shadow: 0 0 20px #ec4899;
}

.corner-bottom-right::before {
    bottom: -4px;
    right: -4px;
    background: #10b981;
    box-shadow: 0 0 20px #10b981;
}

@keyframes cornerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.hexagon-grid-wrapper {
    padding: 60px 0;
    position: relative;
}

.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    grid-gap: 30px 20px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Offset every second row for honeycomb effect */
.hexagon-item:nth-child(2),
.hexagon-item:nth-child(5) {
    transform: translateY(70px);
}

.hexagon-item {
    width: 220px;
    height: 254px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.hexagon-item:hover {
    transform: scale(1.12) translateY(0);
    z-index: 10;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px currentColor);
}

.hexagon-item:nth-child(2):hover,
.hexagon-item:nth-child(5):hover {
    transform: scale(1.12) translateY(70px);
}

/* Hexagon Shape */
.hexagon-shape {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    /* Background gradient set dynamically via inline style */
}

/* Inner glow and shine effect - more subtle and professional */
.hexagon-shape::before {
    content: '';
    position: absolute;
    inset: 5px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.12) 0%, 
        transparent 30%, 
        rgba(0,0,0,0.3) 70%,
        rgba(0,0,0,0.5) 100%
    );
    opacity: 1;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Animated shimmer overlay - subtle professional shimmer */
.hexagon-shape::after {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 45%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 55%,
        transparent 100%
    );
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        background-position: 200% center;
        opacity: 0;
    }
}

.hexagon-item:hover .hexagon-shape::after {
    animation-duration: 2s;
}

/* Hover effects - enhanced but not overwhelming */
.hexagon-item:hover .hexagon-shape::before {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.18) 0%, 
        transparent 35%, 
        rgba(0,0,0,0.25) 70%,
        rgba(0,0,0,0.4) 100%
    );
}

.hexagon-item:hover .hexagon-shape {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
    filter: brightness(1.2) saturate(1.3);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 40px currentColor,
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Hexagon Content */
.hexagon-content {
    text-align: center;
    z-index: 1;
    color: #fff;
    padding: 20px;
}

.hexagon-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hexagon-item:hover .hexagon-content i {
    transform: scale(1.15) rotateY(360deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
    animation: none;
}

.hexagon-content h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    max-height: 3.2em; /* 2 lines * 1.6 line-height */
}

.hexagon-content span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    max-height: 2.6em; /* 2 lines * 1.3 line-height */
}

/* Technology-specific text colors (icons and text glow) */
/* Background gradients are set dynamically via inline styles from database */
.java-hex { color: #f97316; }
.python-hex { color: #3b82f6; }
.frontend-hex { color: #06b6d4; }
.nodejs-hex { color: #10b981; }
.php-hex { color: #8b5cf6; }
.database-hex { color: #0ea5e9; }


/* ============================================
   LEARNING PATH MODAL STYLES
   ============================================ */

.learning-path-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.learning-path-modal.active {
    display: block;
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

/* Modal Header */
.modal-header-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.back-button i {
    font-size: 1.2rem;
}

.close-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Content */
.modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 120px 40px 160px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    background: transparent;
}

.modal-scroll-content::-webkit-scrollbar {
    width: 10px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Roadmap Header */
.roadmap-header {
    max-width: 1200px;
    margin: 0 auto 80px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 3;
}

.roadmap-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.roadmap-breadcrumb i {
    font-size: 0.8rem;
}

.roadmap-breadcrumb .current {
    font-weight: 700;
}

.roadmap-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, currentColor, currentColor);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roadmap-subtitle {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.roadmap-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item i {
    font-size: 1.3rem;
    opacity: 0.8;
}

.meta-item span {
    font-size: 1rem;
    font-weight: 600;
}

/* Learning Path Timeline */
.learning-path-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
    z-index: 3;
}

/* Center Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, currentColor 0%, transparent 100%);
    transform: translateX(-50%);
}

/* Phase Sections */
.phase-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.phase-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.phase-number {
    width: 80px;
    height: 80px;
    background: currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px currentColor;
}

.phase-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.phase-duration {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Topic Node */
.topic-node {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 3;
}

.topic-node:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: currentColor;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Connector Lines */
.topic-node::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
}

.topic-node:nth-child(odd)::before {
    right: 100%;
    margin-right: 30px;
}

.topic-node:nth-child(even)::before {
    left: 100%;
    margin-left: 30px;
}

.topic-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.topic-status i {
    font-size: 0.9rem;
}

.topic-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.topic-description {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.topic-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.topic-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
}

.topic-duration i {
    opacity: 0.7;
}

/* Modal Footer CTA */
.modal-footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 100;
}

.cta-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-enroll,
.btn-explore-course {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-enroll {
    background: linear-gradient(135deg, #0d6efd, currentColor);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-enroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.btn-explore-course {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-explore-course:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-enroll i,
.btn-explore-course i {
    font-size: 1.3rem;
}

/* Progress Indicator */
.roadmap-progress-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.progress-dots {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-dot {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
}

.progress-dot.active {
    background: #fff;
    box-shadow: 0 0 15px #fff;
    transform: scale(1.4);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hexagon-grid {
        grid-template-columns: repeat(2, 200px);
        grid-gap: 25px 15px;
    }

    .hexagon-item {
        width: 200px;
        height: 231px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .topic-node::before {
        display: none;
    }

    .timeline-line {
        left: 30px;
    }

    .roadmap-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .technology-showcase-section .section-title {
        font-size: 2.5rem;
        letter-spacing: -0.01em;
    }
    
    .technology-showcase-section .section-subtitle {
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .hexagon-grid {
        grid-template-columns: repeat(2, 160px);
        grid-gap: 20px 10px;
    }

    .hexagon-item {
        width: 160px;
        height: 185px;
    }

    .hexagon-item:nth-child(2),
    .hexagon-item:nth-child(5) {
        transform: translateY(55px);
    }

    .hexagon-item:nth-child(2):hover,
    .hexagon-item:nth-child(5):hover {
        transform: scale(1.12) translateY(55px);
    }

    .hexagon-content i {
        font-size: 3rem;
    }

    .hexagon-content h4 {
        font-size: 1.1rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        max-height: 2.8em;
    }
    
    .hexagon-content span {
        font-size: 0.75rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }

    .modal-header-custom {
        height: 70px;
        padding: 0 20px;
    }

    .back-button span {
        display: none;
    }

    .back-button {
        padding: 12px;
    }

    .close-button {
        width: 45px;
        height: 45px;
    }

    .modal-scroll-content {
        padding: 100px 20px 140px;
    }

    .roadmap-title {
        font-size: 2rem;
    }

    .roadmap-subtitle {
        font-size: 1.1rem;
    }

    .roadmap-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .phase-title {
        font-size: 1.8rem;
    }

    .topic-node {
        padding: 20px;
    }

    .topic-title {
        font-size: 1.2rem;
    }

    .cta-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .btn-enroll,
    .btn-explore-course {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 1rem;
    }

    .roadmap-progress-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hexagon-grid {
        grid-template-columns: repeat(2, 140px);
    }

    .hexagon-item {
        width: 140px;
        height: 162px;
    }

    .hexagon-content i {
        font-size: 2.5rem;
    }

    .hexagon-content h4 {
        font-size: 0.95rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
        max-height: 2.6em;
    }

    .hexagon-content span {
        font-size: 0.7rem;
        line-height: 1.3;
        -webkit-line-clamp: 1;
        max-height: 1.4em;
    }
}

/* ============================================
   ROADMAP MODAL STYLES (NEW DYNAMIC SYSTEM)
   ============================================ */

.roadmap-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.roadmap-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.roadmap-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.roadmap-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.roadmap-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.roadmap-back-btn,
.roadmap-close-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roadmap-back-btn:hover,
.roadmap-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.roadmap-modal-title {
    flex: 1;
    text-align: center;
    color: #ffffff;
}

.roadmap-modal-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.roadmap-modal-title p {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Modal Body */
.roadmap-modal-body {
    flex: 1;
    overflow: hidden;
}

.roadmap-scroll-content {
    height: 100%;
    overflow-y: auto;
    padding: 40px;
}

.roadmap-scroll-content::-webkit-scrollbar {
    width: 10px;
}

.roadmap-scroll-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.roadmap-scroll-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.roadmap-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modal Footer */
.roadmap-modal-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-dots {
    display: flex;
    gap: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #3b82f6;
    transform: scale(1.3);
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-modal-primary,
.btn-modal-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-modal-primary {
    background: #3b82f6;
    color: #ffffff;
}

.btn-modal-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-modal-secondary {
    background: #f1f5f9;
    color: #334155;
}

.btn-modal-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .roadmap-modal {
        width: 95%;
        max-height: 95vh;
    }

    .roadmap-modal-header {
        padding: 20px;
    }

    .roadmap-modal-title h2 {
        font-size: 1.4rem;
    }

    .roadmap-scroll-content {
        padding: 20px;
    }

    .roadmap-modal-footer {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .modal-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-modal-primary,
    .btn-modal-secondary {
        width: 100%;
        justify-content: center;
    }

    .progress-dots {
        justify-content: center;
    }
}

