:root {
    --primary-color: #4fb695;
    --primary-hover: #3da584;
    --primary-light: rgba(79, 182, 149, 0.1);
    --dark-bg: #0a0f1a;
    --card-bg: rgba(30, 41, 59, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #4fb695;
    --gradient-primary: linear-gradient(135deg, #4fb695, #3da584);
    --glass-bg: rgba(30, 41, 59, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
    margin: 0;
    padding: 0;
    
}


/* animatsiya orqa fon */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -5;
    display: block;
}

.content-body {
    position: relative;
    z-index: 10;
    max-height: 100vh;
    overflow-y: auto;

}


/* Navbar styling */
.navbar-wrapper {
    position: fixed;
    top: 0.5rem;
    left: 0.7rem;
    right: 0.7rem;
    z-index: 100;
}

.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 0;
    /* margin: 1rem; */
    border-radius: 10px;
    animation: slideUp 1s ease-out forwards;
    position: sticky;
}


@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: var(--text-primary) !important;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin: 0 0.5rem;
    transform-style: preserve-3d;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 8px;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.footer{
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 500px) {
    .footer .social-link {
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        border-radius: 10px;
        margin: 0 0.3rem;
    }
}


/* Card styling */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


.card:hover .skill-icon i {
    color: inherit !important;
    transition: color 0.3s ease;
}

.skill-icon i {
    color: currentColor;
}

.card .skill-icon i {
    color: #6c757d;
}

.card:hover .skill-icon i {
    color: #4fb695 !important;
}

.card:hover .display-4 {
    color: #4fb695 !important;
}

.card .display-4 {
    transition: color 0.3s ease;
}

/* Button styling */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3da584, #4fb695);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0);
    transform-origin: center;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 182, 149, 0.3);
}

.btn-primary:hover::before {
    transform: scale(1.1);
}

/* Section styling */
.section {
    padding: 4rem 0;
    position: relative;
}

.hero-section {
    padding: 6rem 0 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: translateZ(10px);
}

.projects-section {
    padding-top: 2rem;
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Social links */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.5rem;
    transform-style: preserve-3d;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-item {
    list-style: none;
}

.page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
}

.page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 182, 149, 0.2);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 182, 149, 0.3);
}

.page-item.disabled .page-link {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-secondary);
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Logo styling */
.navbar-brand h3 {
    margin-top: 5px;
    transition: transform 0.5s ease;
}

.navbar-brand:hover h3 {
    transform: scale(1.05);
}

.bg-custom {
    background-color: #4fb695 !important;
}

/* Technology Badge Styles */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0.25rem;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.tech-badge i {
    margin-right: 0.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 182, 149, 0.2);
    background: var(--gradient-primary);
    color: white;
}

.tech-badge:hover i {
    transform: scale(1.2);
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.tech-badge:hover::before {
    opacity: 1;
}

.tech-more {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 182, 149, 0.2);
    background: var(--gradient-primary);
    color: white;
}

.tech-card .card-body > i{
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.gradient-text {
    background: linear-gradient(135deg, #4fb695, #3da584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    display: inline-block;
    min-width: 200px;
}

.code-window {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.code-header {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-content {
    padding: 1.5rem;
}

.code-content pre {
    margin: 0;
    color: #4fb695;
    overflow-y: auto;
    scrollbar-width: none;
}

.code-content pre::-webkit-scrollbar {
    display: none;
}

.code-content code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 36px;
    opacity: 0.8;
    pointer-events: none;
    animation: floating 4s ease-in-out infinite;
}

.float-element i {
    color: #4fb695;
    transition: color 0.3s ease;
}

.float-element i:hover {
    color: #1f9f70;
}


@media (max-width: 576px) {
    .code-window {
        margin-top: 1.2rem;
    }
    .float-element {
        font-size: 28;
    }
    .code-content code {
        font-size: 0.8rem;
    }
}

.fe-1 {
    top: 5%;
    left: 15%;
    animation-delay: 0s;
}

.fe-2 {
    top: 25%;
    right: 5%;
    animation-delay: 1s;
}

.fe-3 {
    bottom: 50%;
    left: 45%;
    animation-delay: 2s;
}

.fe-4 {
    bottom: -5%;
    right: 20%;
    animation-delay: 3s;
}
.fe-5 {
    bottom: 0%;
    right: 5%;
    animation-delay: 4s;
}
.fe-6 {
    bottom: 55%;
    right: 25%;
    animation-delay: 5s;
}
.fe-7 {
    bottom: -5%;
    left: 25%;
    animation-delay: 6s;
}
.fe-8 {
    bottom: 25%;
    left: 1%;
    animation-delay: 7s;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Project Card Styles */
.project-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-overlay a {
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-container:hover .card{
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 182, 149, 0.2);
    border-color: var(--primary-color);
}


.card-container:hover .card-image img {
    transform: scale(1.1);
}

.card-container:hover .card-overlay {
    opacity: 1;
}
.card-container:hover .card-overlay a{
    color: #4fb695;
}

.card-link, .read-more {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-link:hover, .read-more:hover {
    transform: translateX(5px);
    color: #3e9d7a !important;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .display-1 {
        font-size: 3rem;
    }
}


.container {
    position: relative;
    z-index: 1;
}


/* ++++++++++++++++++ */

.min-vh-75 {
    min-height: 75vh;
}

.about-image img {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--glass-bg);
    transition: transform 0.3s ease;
}

.card:hover .skill-icon {
    transform: scale(1.1);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    width: calc(50% - 2rem);
    margin-left: auto;
}

.timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.timeline-item:hover::before{
    transform: scale(1.2);
    border: 1px solid #fff;
    transition: transform 0.5s ease;
}

.timeline-item:nth-child(odd)::before {
    left: -2.5rem;
}

.timeline-item:nth-child(even)::before {
    right: -2.5rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        width: calc(100% - 3rem);
        margin-left: 3rem !important;
    }

    .timeline-item::before {
        left: -2.5rem !important;
    }
}

.card .badge {
    background-color: #4fb695 !important;
    color: white;
}

.card-body {
    color: white; /* Ensure text inside the card is white */
}

.badge.bg-primary {
    background-color: #4fb695 !important;
    color: var(--dark-bg);
}

.timeline-item .card .card-body h3,
.timeline-item .card .card-body h4 {
    color: white;
}

.timeline-item .card .card-body p {
    color: #d3d3d3;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
    color: var(--primary-color);
}

.hover-text-primary {
    transition: all 0.3s ease;
}

.hover-text-primary:hover {
    color: var(--primary-color) !important;
}

.contact-form .form-control {
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: white;
}

.contact-form .form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    color: white;
}

.contact-form .form-control::placeholder {
    color: #6c757d;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ++++++++++++++++++++++++++++++++++++++++++ */

/* one blog page */
.text-custom {
    color: #4fb695 !important;
}

.text-custom:hover {
    color: #3a9d78 !important;
}


/* ++++++++++++++++++++++++++++++++++++++++++ */

/* one project page */

.project-detail-page {
    min-height: 100vh;
    padding-top: 5rem;
}

.project-title {
    position: relative;
    z-index: 1;
    background: var(--gradient-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.tech-stack-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.showcase-window {
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.window-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.window-title {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.window-content {
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-window:hover .project-image {
    transform: scale(1.02);
}

/* Content Card Styles */
.content-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.content-title {
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Sidebar Styles */
.links-card, .tech-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.sidebar-title {
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 24px;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}


.tech-item i {
    font-size: 1.5rem;
    margin:0 auto 0.5rem auto;
    display: block;
}

.tech-item:hover {
    transform: translateY(-3px);
    background: var(--gradient-primary);
    color: #fff;
}

.related-projects {
    margin-top: 4rem;
}


/* Contact Social card */

#social-cards {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.social-card {
    flex: 0 1 calc(25% - 20px);
    min-width: 200px;
    height: 250px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
@media (max-width: 1200px) {
    .social-card {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 500px) {
    .social-card {
        flex: 0 1 70%;
        text-align: center;
        justify-content: center;
        margin: 0 auto;
    }
}

.social-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(79, 182, 149, 0.2);
}
.social-card_content {
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    flex-direction: column;
}
.social-card:nth-child(1) {
    --color: 124 80% 24%;
}
.social-card:nth-child(2) {
    --color: 220 100% 35%;
}
.social-card:nth-child(3) {
    --color: 0 0% 100%;
}
.social-card:nth-child(4) {
    --color: 348 80% 60%;
}
.social-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        hsl(var(--color) / 0.35),
        transparent 40%
    );
    border-radius: inherit;
    opacity: 0;
    z-index: 2;
}
#social-cards:hover > .social-card::before {
    opacity: 1;
}
.social-card_content a {
    all: unset;
    cursor: pointer;
}
.social-card_content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
.social-card_content > i {
    font-size: 4rem;
    padding-bottom: 4px;
    color: rgba(255, 255, 255, 0.5);
}
.social-card_content > p {
    color: rgba(255, 255, 255, 0.5);
}
.social-card_content > a {
    width: 70%;
    padding-block: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    z-index: 10;
}
.social-card_content > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
