/* --- 1. Global Styles & Variables --- */
:root {
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-blue: #0d63f2;
    --button-bg: #333333;
    --card-radius: 28px;
    --container-padding: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Stop scrolling when mobile menu is open */
body.nav-open {
    overflow: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 2. Header, Footer & Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    position: relative;
    z-index: 1001;
    /* Ensure header is above content */
}

/* NEW: Styles for the image logo */
.logo img {
    height: 100px; /* आप अपनी जरूरत के हिसाब से ऊंचाई बदल सकते हैं */
    width: auto;  /* यह आस्पेक्ट रेशियो बनाए रखेगा */
    display: block; /* इमेज के नीचे अतिरिक्त स्पेस हटाता है */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.cta-button {
    background-color: var(--button-bg);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #444;
    transform: scale(1.05);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    padding: 30px 0;
}

.site-footer .main-nav a {
    font-size: 14px;
}

/* --- 3. Hamburger Menu (Mobile Only) --- */
.hamburger-menu {
    display: none;
    /* Hidden by default */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

.hamburger-menu .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Animation for hamburger to 'X' */
body.nav-open .hamburger-menu .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

body.nav-open .hamburger-menu .bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .hamburger-menu .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- 4. Marquee (Infinite Horizontal Scroll) --- */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 0;
    margin: 20px 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.marquee-content span b {
    color: var(--text-primary);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 5. Main Card Layout (Flexbox) & Base Styles --- */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.card {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, rgba(30, 30, 30, 0) 70%), var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 32px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.card-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-icon-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-icon-button:hover {
    background-color: var(--button-bg);
    transform: rotate(45deg) scale(1.1);
}

/* --- 6. Unique Card Styles --- */
.profile-card {
    flex: 2 1 480px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-image-container {
    flex-shrink: 0;
    width: 260px;
    height: 260px;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #4a90e2, #9013fe);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-card .card-title {
    font-size: 40px;
}

.profile-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.credentials-card {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.credentials-card img.signature {
    width: 85%;
    margin-top: 15px;

    align-self: center;
}

.projects-card {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-thumbnail {
    width: 100%;
    min-height: 130px;
    border-radius: 18px;
    background-image: url('https://kitpapa.net/gridly/wp-content/uploads/2023/04/my-works.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.project-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;

}

.project-thumbnail-text {
    position: relative;
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.project-thumbnail-text small {
    font-size: 24px;
    display: block;
}

.blog-card {
    flex: 1 1 280px;
}

.blog-logo img {
    width: 90px;
}

.blog-card .card-icon-button {
    transform: rotate(45deg);
}

.blog-card .card-icon-button:hover {
    transform: rotate(90deg) scale(1.1);
}

.services-card {
    flex: 2 1 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icons {
    display: flex;
    /* justify-content: space-around; */
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.services-card:hover .service-icon {
    background: var(--button-bg);
    color: var(--text-primary);
    transform: translateY(-5px);
}

.services-card .card-icon-button {
    transform: rotate(45deg);
}

.services-card .card-icon-button:hover {
    transform: rotate(90deg) scale(1.1);
}

.services-card .service-icon:nth-child(2) {
    transition-delay: 0.1s;
}

.services-card .service-icon:nth-child(3) {
    transition-delay: 0.2s;
}

.services-card .service-icon:nth-child(4) {
    transition-delay: 0.3s;
}

.profiles-card {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-links {
    display: flex;
    /* justify-content: center; */
    gap: 24px;
    margin-top: 30px;
}

.profile-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: var(--text-primary);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.profile-link:hover {
    background-color: var(--button-bg);
    transform: scale(1.1);
}

.stats-card {
    flex: 1.5 1 380px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.stats-card:hover {
    transform: none;
    box-shadow: none;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 20px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background-color: #2a2a2a;
    z-index: 10;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 600;
}

.stat-item .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cta-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(45deg, var(--card-bg-color), #242424);
}

.cta-card .card-title {
    font-size: 42px;
    line-height: 1.2;
}

.cta-card .card-title span {
    color: var(--accent-blue);
}

.sparkles {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 24px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.cta-card .card-icon-button {
    transform: rotate(45deg);
}

.cta-card .card-icon-button:hover {
    transform: rotate(90deg) scale(1.1);
}

/* --- 7. Responsive Design --- */
@media (max-width: 1200px) {
    .stats-card {
        flex-basis: 100%;
        order: 1;
    }

    .cta-card {
        flex-basis: 100%;
        order: 2;
    }
}

@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
    }

    .cta-button {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 1000;
    }

    body.nav-open .main-nav {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .main-nav ul a {
        font-size: 28px;
        font-weight: 600;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .credentials-card,
    .projects-card,
    .blog-card,
    .profiles-card {
        flex-basis: calc(50% - 12px);
    }

    .services-card {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    /* NEW: Responsive styles for the logo */
    .logo img {
        height: 100px; /* मोबाइल पर थोड़ा छोटा लोगो */
    }

    .portfolio-grid>.card,
    .stats-card,
    .cta-card,
    .credentials-card,
    .projects-card,
    .blog-card,
    .profiles-card {
        flex-basis: 100% !important;
    }

    .stats-card {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        width: 100%;
    }

    .stat-item .number {
        font-size: 40px;
    }

    .cta-card .card-title {
        font-size: 36px;
    }

    .service-icons,
    .profile-links {
        justify-content: center;
    }

    .site-footer {
        flex-direction: column;
        gap: 20px;
    }

    .site-footer .main-nav {
        display: none;
    }
}


/* locomotive scroll */
/* Locomotive Scroll CSS */
[data-scroll-container] {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.has-scroll-smooth {
    position: relative;
    overflow: hidden;
}

.c-scrollbar {
    position: absolute;
    right: 0;
    top: 0;
    width: 11px;
    height: 100%;
    transform-origin: center right;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
}

.c-scrollbar:hover {
    transform: scaleX(1.45);
}

.c-scrollbar_thumb {
    position: absolute;
    top: 0;
    right: 0;
    background-color: black;
    opacity: 0.5;
    width: 7px;
    border-radius: 10px;
    margin: 2px;
    cursor: -webkit-grab;
    cursor: grab;
}

.has-scroll-dragging .c-scrollbar_thumb {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

/* locomotive scroll */