@font-face {
    font-family:Foldit ;
    src: url(/Fonts/Foldit-VariableFont_wght.ttf);
}
@font-face {
    font-family:Outfit ;
    src: url(/Fonts/Outfit-VariableFont_wght.ttf);
}
@font-face {
    font-family:Poppins ;
    src: url(/Fonts/Poppins-SemiBold.ttf);
}
@font-face {
    font-family:Sora;
    src: url(/Fonts/Sora-VariableFont_wght.ttf);
}
@font-face {
    font-family:Urbanist;
    src: url(/Fonts/Urbanist-VariableFont_wght.ttf);
}


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

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Sora', sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    transition: background-color 0.5s ease-in-out;
    transition: background-image 0.3s ease;
    cursor: url('path_to_your_custom_cursor.png'), auto;
}

.skeleton{
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0%{
        background-color:hsl(200, 20%, 70%)
    }
    100%{
       background-color:hsl(200, 20%, 95%)

    }
}
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}



#container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 100px 1fr 1fr 1fr 120px;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "sidebar top top top top"
        "sidebar card1 card3 card5 right"
        "sidebar card2 card4 card6 right";
    position: relative;
    z-index: 1;
    gap: 12px;
    padding: 12px;
}

.all-card {
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 27, 75, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.all-card:hover {
    background: rgba(30, 27, 75, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.menu {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
}

.menu:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: rotate(90deg);
}

.menu i {
    width: 28px;
    height: 28px;
}

.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar.menu-expanded {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.sidebar-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
    color: #f1f5f9;
}

.sidebar-icon:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.4));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.sidebar-icon i {
    width: 24px;
    height: 24px;
}

.tooltip {
    position: absolute;
    left: 65px;
    background: rgba(0, 0, 0, 0.95);
    color: #2f00ff;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-size: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.sidebar-icon:hover .tooltip {
    opacity: 1;
} 

#top {
    grid-area: top;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

#motivation {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    text-align: left;
}

.quote {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin: 0;
    background: linear-gradient(90deg, #f1f5f9, #cbd5e1, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.quote:hover {
    transform: translateX(8px);
    letter-spacing: 1px;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

#clock, #date {
    filter: brightness(1.1);
}

iframe {
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.feature-card {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.feature-card:hover::before {
    left: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    padding: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .card-content {
    transform: scale(1.05);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.feature-card:hover .card-icon-wrapper {
    background: rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
    transform: rotateY(10deg) scale(1.1);
}

.card-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-text {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .card-text h1 {
    color: #6366f1;
}

.card-text p {
    font-size: 0.85rem;
    color: rgba(241, 245, 249, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .card-text p {
    color: rgba(241, 245, 249, 0.9);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover .card-overlay {
    opacity: 1;
}

#card1 {
    grid-area: card1;
    background: linear-gradient(135deg, rgba(34, 197, 233, 0.2), rgba(59, 130, 246, 0.15));
    border-color: rgba(34, 197, 233, 0.3);
}

#card2 {
    grid-area: card2;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(168, 85, 247, 0.3);
}

#card3 {
    grid-area: card3;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 63, 94, 0.15));
    border-color: rgba(236, 72, 153, 0.3);
}

#card4 {
    grid-area: card4;
    background: linear-gradient(135deg, rgba(34, 197, 233, 0.2), rgba(59, 130, 246, 0.15));
    border-color: rgba(34, 197, 233, 0.3);
}

#card5 {
    grid-area: card5;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 146, 60, 0.3);
}

#card6 {
    grid-area: card6;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 233, 0.15));
    border-color: rgba(16, 185, 129, 0.3);
}

#right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.dark {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.dark-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background-color: transparent;
    background-image: url("/image/night.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dark-btn:hover {
    background-color: rgba(99, 102, 241, 0.2);
    transform: rotate(20deg) scale(1.1);
}

.dark-btn:active {
    transform: rotate(20deg) scale(0.95);
}

.theam {
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 30px;
}

.theme-btn {
    padding: 12px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-btn i {
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.3));
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.theme-btn:hover i {
    transform: rotate(20deg);
}

.theme-btn:active {
    transform: translateY(0px);
}

#th1 {
    background: linear-gradient(135deg, rgba(34, 197, 233, 0.2), rgba(59, 130, 246, 0.15));
    border-color: rgba(34, 197, 233, 0.3);
}

#th1:hover {
    background: linear-gradient(135deg, rgba(34, 197, 233, 0.4), rgba(59, 130, 246, 0.3));
    border-color: rgba(34, 197, 233, 0.6);
}

#th2 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(168, 85, 247, 0.3);
}

#th2:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(139, 92, 246, 0.3));
    border-color: rgba(168, 85, 247, 0.6);
}

#alltheme {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
}

#alltheme:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(251, 146, 60, 0.3));
    border-color: rgba(245, 158, 11, 0.6);
}



@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.all-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.all-card:nth-child(1) { animation-delay: 0s; }
.all-card:nth-child(2) { animation-delay: 0.1s; }
.all-card:nth-child(3) { animation-delay: 0.2s; }
.all-card:nth-child(4) { animation-delay: 0.3s; }
.all-card:nth-child(5) { animation-delay: 0.4s; }

@media (max-width: 1400px) {
    #container {
        grid-template-columns: 80px 1fr 1fr 1fr 100px;
    }
}

@media (max-width: 1024px) {
    #container {
        grid-template-columns: 70px 1fr 1fr 70px;
        grid-template-rows: auto 1fr 1fr;
        grid-template-areas:
            "sidebar top top right"
            "sidebar card1 card3 right"
            "sidebar card2 card4 right";
    }
    
    #card5, #card6 {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #0f172a;
    }
}

html {
    scroll-behavior: smooth;
}

button:focus, a:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

*{
    cursor: none;
}

.cursor{
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #3a00c2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition:
        width .25s ease,
        height .25s ease,
        border-color .25s ease,
        background .25s ease;
    backdrop-filter: blur(4px);
    background: rgba(139,92,246,.15);
}

.cursor::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}


.cursor.hover{
    width: 40px;
    height: 40px;
    background: rgba(0, 4, 233, 0.25);
    border-color: #ddf509;
}

.cursor.click{
    transform: translate(-50%, -50%) scale(.8);
}
