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

body {
    background: #0f172a;
    color: white;
    font-family: 'Arial', sans-serif;
}

.header {
    text-align: center;
    padding: 20px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}


.back-link {
    text-decoration: none;
    color: white;
}

.header-description {
    padding: 15px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-align: center;
    margin-left: 5%;
    margin-right: 5%;
    line-height: 1.6;
}

.container {
    width: 100%;
    color: #8a9998;
}

.carts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cart {
    width: 100%;
    min-height: 200px;
    border: 2px solid white;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.cart h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.cart p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cart-button {
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: #3b82f6;
    color: white;
    transition: background 0.3s ease;
    width: 100%;
}

.cart-button:hover {
    background: #2563eb;
}

/* SVG and roadmap styles */
.node-text {
    fill: white;
    font-size: clamp(10px, 1.5vw, 14px);
    text-anchor: middle;
    dominant-baseline: middle;
}

.node-circle {
    cursor: pointer;
    fill: #3b82f6;
    transition: fill 0.3s ease;
}

.node-circle:hover {
    fill: #2563eb;
}

.app-circle {
    cursor: pointer;
    fill: #10b981;
    transition: fill 0.3s ease;
}

.app-circle:hover {
    fill: #059669;
}

.data-circle {
    cursor: pointer;
    fill: #f59e0b;
    transition: fill 0.3s ease;
}

.data-circle:hover {
    fill: #d97706;
}

.AIML-circle {
    cursor: pointer;
    fill: green;
    transition: fill 0.3s ease;
}

/* .milestone {
    fill: #ef4444 !important;
} */

/* .milestone:hover {
    fill: #dc2626 !important;
} */

.course-description {
    text-align: center;
    padding: 10px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: -100px;
    color: #8a9998;
}

.course-description p {
    padding: 10px;
    line-height: 1.6;
}

/* Roadmap containers */
#web-roadmap,
#app-roadmap,
#DataAnalysis-roadmap,
#AIML-roadmap {
    display: none;
    width: 100%;
    padding: 2rem 1rem;
    overflow-x: auto;
}

.roadmap-svg {
    width: 100%;
    height: auto;
    min-width: 800px;
}

/* Details sections */
.details,
.app-details,
.DataAnalysis-details,
.AIML-details {
    display: none;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
}

.detail-link {
    text-decoration: none;
    color: white;
    display: block;
    padding: 8px 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
    border-left: 3px solid transparent;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.detail-link:hover {
    color: #3b82f6;
    border-left-color: #3b82f6;
    padding-left: 15px;
}

/* Lists styling */
.lists {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.lists h2 {
    color: #3b82f6;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    margin: 1rem 0;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.lists h4 {
    color: #10b981;
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin: 1rem 0 0.5rem 0;
}

.lists p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lists ul {
    list-style: none;
    padding: 0;
}

.lists li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lists li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Show classes for different lists */
#frontend-list.show,
#backend-list.show,
#Database-list.show,
#versionControl-list.show,
#app-Languages-list.show,
#native-app-list.show,
#plateform-app-list.show,
#backend-app-list.show,
#Data-basic-list.show,
#Data-handling-list.show,
#Data-visualization-list.show,
#Advance-Data-list.show,
#AIML-basic-list.show,
#Deep-learn-list.show,
#ML-learn-list.show,
#Advance-ML-list.show {
    max-height: 800px;
    opacity: 1;
    padding: 1.5rem;
}

/* Video styling */
.web-video {
    display: none;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16/9;
    margin: 2rem auto;
    border-radius: 8px;
}

.video {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.app-video {
    display: none;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 16/9;
    margin: 2rem auto;
    border-radius: 8px;
}

/* Responsive breakpoints */
@media screen and (max-width: 768px) {
    .header-description {
        margin-left: 2%;
        margin-right: 2%;
        font-size: 1rem;
    }

    .carts {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .cart {
        min-height: auto;
        padding: 1rem;
    }

    .roadmap-svg {
        min-width: 600px;
    }

    .node-text {
        font-size: 10px;
    }

    .details,
    .app-details,
    .DataAnalysis-details,
    .AIML-details {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .lists {
        max-width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .web-video {
        margin-top: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 15px;
        font-size: 1.5rem;
    }

    .header-description {
        font-size: 0.9rem;
        padding: 10px;
    }

    .carts {
        padding: 0.5rem;
    }

    .cart {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .cart-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .roadmap-svg {
        min-width: 500px;
    }

    #web-roadmap,
    #app-roadmap,
    #DataAnalysis-roadmap,
    #AIML-roadmap {
        padding: 1rem 0.5rem;
    }

    .lists {
        padding: 0 1rem;
    }

    .lists.show {
        padding: 1rem;
    }

    .detail-link {
        font-size: 0.875rem;
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .header {
        padding: 10px;
    }

    .header-description {
        padding: 10px;
    }

    .carts {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .cart {
        min-height: 150px;
        padding: 1rem;
    }
}

/* High DPI displays */
@media screen and (min-resolution: 192dpi) {
    .node-text {
        font-size: 12px;
    }

    .detail-link {
        font-size: 1rem;
    }
}

/* Animation improvements */
.cart,
.lists,
.detail-link,
.node-circle,
.app-circle,
.data-circle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.cart-button:focus,
.node-circle:focus,
.app-circle:focus,
.data-circle:focus,
.detail-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .cart {
        border: 1px solid black;
        break-inside: avoid;
    }

    .web-video {
        display: none;
    }
}

.profile {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width:40%;
}

.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.profile p {
    margin: 0;
    font-size: 18px;
    color: white;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
}

.profile-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 8px;
}

.profile-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.profile-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 16px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.profile-link:hover::after {
    width: calc(100% - 32px);
}

.profile-link::before {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Alternative dark theme version */
.profile.dark {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
}

.profile.dark p {
    color: #e0e0e0;
}

.profile.dark .profile-link {
    color: #64b5f6;
}

.profile.dark .profile-link:hover {
    color: #90caf9;
    background: rgba(100, 181, 246, 0.1);
}

/* Responsive design */
@media (max-width: 600px) {
    .profile {
        padding: 20px 25px;
        margin: 0 10px;
    }

    .profile p {
        font-size: 16px;
    }
}

.instruction {
    font-size:18px;
    color : rgb(5, 248, 5);
    animation: pulse 2s infinite;
}

@keyframes pulse  {
    0% {opacity: 1;}
    50%{opacity: 0.5;}
    100%{opacity: 1;}
}