/*
Theme Name: Muhammad Rehan Latif
Theme URI: https://mrehanlatif.com
Description: A modern, professional portfolio theme for Muhammad Rehan Latif - Frontend Developer, WordPress Developer, UI Engineer
Author: Muhammad Rehan Latif
Author URI: https://mrehanlatif.com
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrehanlatif
Domain Path: /languages
*/

/* Import Inter Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

  /* Variables for consistency */
        :root {
            --bg-dark: #1f1f1f;
            --card-bg: transparent;
            --border-color: #333333;
            --accent-color: #28e98c;
            /* Drake Signature Green */
            --text-muted: #999999;
        }

        /* --- Custom Scrollbar for Chrome, Safari, and Edge --- */

/* 1. Scrollbar ki width */
::-webkit-scrollbar {
    width: 10px; /* Vertical scrollbar ki width */
    height: 10px; /* Horizontal scrollbar ki height */
}

/* 2. Track (Peeche wala hissa) */
::-webkit-scrollbar-track {
    background: #1a1c1e; /* Dark background jo body se match kare */
}

/* 3. Thumb (Jo chalta hai) */
::-webkit-scrollbar-thumb {
    background: #3ae98c; /* Green color jo theme ka hai */
    border-radius: 10px; /* Smooth rounded corners */
    border: 2px solid #1a1c1e; /* Track ke sath thora gap dikhane ke liye border */
}

/* 4. Hover Effect (Jab mouse upar layein) */
::-webkit-scrollbar-thumb:hover {
    background: #2dd876; /* Thora dark green hover par */
}

/* --- Firefox ke liye Support --- */
* {
    scrollbar-width: thin;
    scrollbar-color: #3ae98c #1a1c1e;
}

        html {
            scroll-behavior: smooth;
            -webkit-scroll-behavior: smooth;
            scroll-padding-top: 90px;
        }

        body {
            background-color: var(--bg-dark) !important;
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            cursor: none;
        }

        a, button, input, textarea, select, .cursor-pointer, .service-card, .project-item, .skill-pill, .social-icons a {
            cursor: none;
        }

        .custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(40, 233, 140, 0.9);
            box-shadow: 0 0 18px rgba(40, 233, 140, 0.9), 0 0 35px rgba(40, 233, 140, 0.5);
            pointer-events: none;
            z-index: 2147483647;
            transform: translate(-50%, -50%);
            transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
            mix-blend-mode: screen;
        }

        .custom-cursor.cursor-hover {
            width: 42px;
            height: 42px;
            background: rgba(40, 233, 140, 0.18);
            border: 1px solid rgba(40, 233, 140, 0.9);
            box-shadow: 0 0 24px rgba(40, 233, 140, 0.8), 0 0 40px rgba(40, 233, 140, 0.3);
        }

        .custom-cursor-ring {
            position: fixed;
            top: 0;
            left: 0;
            width: 32px;
            height: 32px;
            border: 1px solid rgba(40, 233, 140, 0.8);
            border-radius: 50%;
            pointer-events: none;
            z-index: 2147483646;
            transform: translate(-50%, -50%);
            transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
            box-shadow: 0 0 18px rgba(40, 233, 140, 0.3);
        }

        .custom-cursor-ring.cursor-hover {
            width: 58px;
            height: 58px;
            border-color: rgba(40, 233, 140, 1);
            box-shadow: 0 0 30px rgba(40, 233, 140, 0.4);
        }

        .text-success-custom {
            color: var(--accent-color);
        }

        .border-secondary-custom {
            border: 1px solid var(--border-color);
        }

        /* --- Fixed Left Sidebar --- */
        .left-sidebar {
            position: fixed;
            left: 50px;
            top: 50px;
            bottom: 50px;
            width: 380px;
            z-index: 1000;
        }

        .profile-card {
            height: 100%;
            border-radius: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .social-icons a {
            width: 50px;
            height: 50px;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            text-decoration: none;
            transition: 0.3s;
        }

        .social-icons a:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        .floating-whatsapp {
            position: fixed;
            right: 28px;
            bottom: 28px;
            width: 62px;
            height: 62px;
            border-radius: 50%;
            background: linear-gradient(135deg, #25d366 0%, #1ebc5a 100%);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35);
            z-index: 2000;
            text-decoration: none;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .floating-whatsapp:hover {
            transform: translateY(-4px) scale(1.04);
            box-shadow: 0 18px 42px rgba(37, 211, 102, 0.45);
            color: #fff;
        }

        .floating-whatsapp i {
            font-size: 30px;
            line-height: 1;
        }

        .btn-success-custom {
            background-color: var(--accent-color) !important;
            color: #000 !important;
            font-weight: 700 !important;
            border: none !important;
            border-radius: 999px !important;
            padding: 0.9rem 1.5rem !important;
            letter-spacing: 0.08em !important;
            text-transform: uppercase !important;
            transition: 0.3s ease !important;
            box-shadow: 0 0 20px rgba(40, 233, 140, 0.18);
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.5rem !important;
        }

        .btn-success-custom:hover,
        .btn-success-custom:focus,
        .btn-success-custom:active {
            background-color: #24d77c !important;
            color: #000 !important;
            border: none !important;
            box-shadow: 0 0 25px rgba(40, 233, 140, 0.35);
        }

        /* --- Fixed Right Menu --- */
        .right-menu-bar {
            position: fixed;
            right: 50px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
        }

        .menu-container {
            display: flex;
            flex-direction: column;
            gap: 25px;
            padding: 15px 12px;
            border-radius: 50px;
            align-items: center;
            background-color: rgba(31, 31, 31, 0.8);
            backdrop-filter: blur(10px);
        }

        .menu-container a {
            color: #666;
            font-size: 20px;
            transition: 0.3s;
            text-decoration: none;
        }

        .menu-container a.active,
        .menu-container a:hover {
            color: var(--accent-color);
        }

        /* --- Main Content --- */
        .main-content {
            margin-left: 480px;
            /* Space for profile card */
            margin-right: 150px;
            /* Space for right menu */
            padding: 0 50px;
        }

        .content-section {
            padding-top: 100px;
            padding-bottom: 100px;
        }

        .badge-custom {
            display: inline-flex;
            align-items: center;
            padding: 10px 25px;
            border-radius: 30px;
            font-size: 13px;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .max-w-600 {
            max-width: 600px;
        }

        .hero-value-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(180px, 1fr));
            gap: 18px;
            max-width: 820px;
        }

        .hero-value-card {
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 20px 18px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 14px;
            min-height: 92px;
            transition: all 0.3s ease;
        }

        .hero-value-card:hover {
            border-color: rgba(40, 233, 140, 0.9);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(40, 233, 140, 0.08);
        }

        .hero-value-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(40, 233, 140, 0.10);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .hero-value-card h3 {
            margin: 0;
            font-size: 1rem;
            line-height: 1.35;
            font-weight: 600;
            color: #f5f5f5;
            display: flex;
            align-items: center;
            min-height: 42px;
            word-break: keep-all;
            overflow-wrap: normal;
        }

        .max-w-700 {
            max-width: 700px;
        }

        .leading-relaxed {
            line-height: 1.8;
        }

        @media (max-width: 768px) {
            .hero-value-grid {
                grid-template-columns: 1fr;
                max-width: 100%;
            }

            /* Show the mobile navigation at the top only after scrolling. */
            .right-menu-bar {
                display: block;
                width: 100vw;
                position: absolute;
                left: 50%;
                right: auto;
                top: 0;
                transform: translateX(-50%);
                opacity: 1;
                pointer-events: auto;
                transition: opacity 0.25s ease, transform 0.25s ease;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }

            body.mobile-menu-visible .right-menu-bar {
                position: fixed;
                width: 94vw;
                top: 0;
                transform: translateX(-50%);
                opacity: 1;
                pointer-events: auto;
                border-bottom: 0;
            }

            .right-menu-bar .menu-container {
                flex-direction: row;
                width: 100%;
                justify-content: space-around;
                gap: 0;
                padding: 12px 18px;
                box-sizing: border-box;
                border: 0 !important;
                border-radius: 0 !important;
            }

            /* Keep the profile at the top until the menu appears after scrolling. */
            .left-sidebar {
                padding: 112px 8px 0;
                box-sizing: border-box;
            }

            .profile-card {
                height: auto !important;
                justify-content: flex-start;
                padding-top: 16px !important;
            }

            .profile-card > .d-flex:first-child {
                position: relative;
                z-index: 2;
                display: flex !important;
                flex: 0 0 auto;
                align-items: flex-start !important;
                min-height: 58px;
                margin-bottom: 24px !important;
                opacity: 1 !important;
                visibility: visible !important;
            }

            .profile-card > .d-flex:first-child > div:first-child,
            .profile-card > .d-flex:first-child > div:first-child a {
                display: block !important;
                visibility: visible !important;
            }

            .profile-img-container {
                margin-top: 0;
            }
        }

        /* Responsive adjustments */
        @media (max-width: 1300px) {
            .left-sidebar {
                position: relative;
                width: 100%;
                left: 0;
                top: 0;
                margin-bottom: 50px;
            }

            .main-content {
                margin: 0;
                padding: 20px;
            }

            .right-menu-bar {
                display: none;
            }
        }

        @media (max-width: 768px) {
            /* Override the tablet rule so the scroll-triggered mobile menu can appear. */
            .left-sidebar {
                margin-bottom: 20px;
            }

            .main-content {
                padding-top: 0;
                padding-bottom: 12px;
            }

            .content-section,
            .py-100 {
                padding-top: 40px !important;
                padding-bottom: 40px !important;
            }

            .right-menu-bar {
                display: block;
            }
        }

        /* --- Timeline Section Styles --- */
        .timeline {
            position: relative;
            padding-left: 30px;
        }

        /* Vertical Line */
        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 10px;
            bottom: 0;
            width: 1px;
            background-color: var(--border-color);
        }

        .timeline-item {
            position: relative;
            transition: 0.3s;
        }

        /* Dots on the line */
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -35px;
            /* Line ke upar align karne ke liye */
            top: 10px;
            width: 10px;
            height: 10px;
            background-color: #666;
            border-radius: 50%;
            transition: 0.3s;
        }

        /* Hover effect on dot */
        .timeline-item:hover::before {
            background-color: var(--accent-color);
        }

        .timeline-date {
            font-size: 16px;
            transition: 0.3s;
        }

        .timeline-item:hover .timeline-date {
            color: #fff !important;
        }

        .timeline-content h4 {
            font-size: 22px;
            transition: 0.3s;
        }

        .timeline-item:hover h4 {
            color: var(--accent-color);
        }

        /* Padding for content items */
        .py-100 {
            padding-top: 100px;
            padding-bottom: 100px;
        }

        /* --- Services Section Styles --- */
        .service-card {
            border-radius: 20px;
            background: transparent;
            transition: all 0.3s ease;
            cursor: default;
        }

        /* Hover Effect: Border green ho jayega aur halka sa shadow aayega */
        .service-card:hover {
            border-color: var(--accent-color) !important;
        }

        .service-card h4 {
            font-size: 24px;
            transition: 0.3s;
        }

        .service-card:hover h4 {
            color: var(--accent-color);
        }

        .max-w-400 {
            max-width: 400px;
        }

        .project-count {
            font-size: 12px;
            letter-spacing: 0.5px;
            color: #fff;
            font-weight: 300;
        }

        /* Icon style adjustment */
        .service-icon i {
            transition: 0.3s ease;
        }

        .service-card:hover .service-icon i {
            transform: translateY(-5px);
        }

        /* Padding adjustment for sections */
        .py-100 {
            padding-top: 100px;
            padding-bottom: 100px;
        }

        /* --- Skills Section Styles --- */
        .skill-pill {
            border-radius: 80px;
            /* High radius for oval shape */
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 200px;
        }

        .skill-pill:hover {
            border-color: var(--accent-color) !important;
        }

        .skill-pill h3 {
            font-size: 32px;
            letter-spacing: -1px;
        }

        /* For logos that are dark, inverting them for dark theme */
        .invert-img {
            filter: invert(1);
        }

        .skill-pill img {
            transition: transform 0.3s ease;
        }

        .skill-pill:hover img {
            transform: scale(1.1);
        }

        /* Responsive spacing for mobile */
        @media (max-width: 768px) {
            .skill-pill {
                min-height: 160px;
                padding: 20px !important;
            }

            .skill-pill h3 {
                font-size: 24px;
            }
        }

        /* --- Portfolio Section Styles --- */
        .project-item {
            margin-bottom: 20px;
        }

        .project-img-wrapper {
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .project-img-wrapper img {
            transition: transform 0.5s ease;
            width: 100%;
        }

        .project-item:hover img {
            transform: scale(1.05);
            /* Hover par image zoom hogi */
        }

        /* Floating Tags over Image */
        .project-tags {
            position: absolute;
            bottom: 30px;
            left: 30px;
            display: flex;
            gap: 10px;
        }

        .project-tags span {
            background-color: #fff;
            color: #000;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .project-title-link {
            text-decoration: none;
            color: #fff;
            display: inline-block;
            cursor: pointer;
        }

        .project-title-link h3 {
            font-size: 28px;
            border-bottom: 1px solid transparent;
            transition: 0.3s;
            margin-top: 10px;
        }

        .project-title-link:hover h3 {
            color: var(--accent-color);
            border-bottom-color: var(--accent-color);
        }

        .archive-project-grid {
            margin-top: 0;
        }

        .archive-project-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .archive-project-card .project-title-link {
            margin-top: 0;
        }

        .archive-project-card .project-title-link h3 {
            font-size: clamp(1.15rem, 1.6vw, 1.8rem);
            margin-bottom: 0;
            line-height: 1.25;
            font-weight: 400;
        }

        .archive-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .archive-pagination .page-numbers {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 0;
            margin: 0;
            list-style: none;
            flex-wrap: wrap;
        }

        .archive-pagination .page-numbers li {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0;
        }

        .archive-pagination .page-numbers a,
        .archive-pagination .page-numbers .current {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 42px;
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid var(--border-color);
            background: transparent;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: 0.3s ease;
            font-weight: 600;
        }

        .archive-pagination .page-numbers a:hover,
        .archive-pagination .page-numbers .current {
            border-color: var(--accent-color);
            color: var(--accent-color);
            box-shadow: 0 0 18px rgba(40, 233, 140, 0.12);
        }

        .archive-pagination .page-numbers .current {
            background: rgba(40, 233, 140, 0.08);
        }

        .project-lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.82);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px;
            opacity: 0;
            visibility: hidden;
            transition: 0.28s ease;
            z-index: 99999;
        }

        .project-lightbox.show {
            opacity: 1;
            visibility: visible;
        }

        @keyframes projectLightboxZoom {
            0% {
                opacity: 0;
                transform: scale(0.72);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .project-lightbox-content {
            position: relative;
            max-width: min(1400px, 92vw);
            width: auto;
            background: #111;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 24px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
            padding: 18px;
            opacity: 0;
            transform: scale(0.72);
            will-change: transform, opacity;
        }

        .project-lightbox.show .project-lightbox-content {
            animation: projectLightboxZoom 0.38s ease forwards;
        }

        .project-lightbox-image {
            display: block;
            max-width: 100%;
            max-height: 90vh;
            width: auto;
            height: auto;
            border-radius: 16px;
            background: #000;
            margin: 0 auto;
            opacity: 0;
            transform: scale(0.9);
            will-change: transform, opacity;
        }

        .project-lightbox.show .project-lightbox-image {
            animation: projectLightboxZoom 0.42s ease forwards;
            animation-delay: 0.06s;
        }

        .project-lightbox-close {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 42px;
            height: 42px;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 50%;
            background: rgba(0,0,0,0.5);
            color: #fff;
            font-size: 28px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .project-lightbox-caption {
            color: #fff;
            font-size: 18px;
            padding: 18px 8px 8px;
            text-align: center;
        }

        /* Specific spacing for grid */
        .g-5 {
            --bs-gutter-y: 4rem;
        }

        /* --- Testimonial Section Styles --- */
        .testimonial-card {
            border-radius: 30px;
            background: transparent;
        }

        .testimonial-card blockquote {
            color: #fff;
            line-height: 1.6;
        }

        .btn-control {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: transparent;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.3s;
        }

        .btn-control:hover {
            border-color: var(--accent-color) !important;
            color: var(--accent-color);
        }

        .tracking-wider {
            letter-spacing: 2px;
        }

        /* Brands styling */
        .brands-section {
            padding-top: 50px;
        }

        .brand-img {
            filter: grayscale(1) brightness(2);
            transition: 0.3s;
        }

        .brand-img:hover {
            filter: grayscale(0) brightness(1);
            opacity: 1;
        }

        .mt-100 {
            margin-top: 100px;
        }

        .opacity-50 {
            opacity: 0.5;
        }

        /* --- Contact Section Styles --- */
        .form-group {
            margin-bottom: 20px;
        }

        .form-control-custom {
            width: 100%;
            background: transparent;
            border: none;
            border-bottom: 1px solid var(--border-color);
            /* Sirf bottom border */
            color: #fff;
            padding: 15px 0;
            font-size: 18px;
            outline: none;
            transition: 0.3s;
        }

        .form-control-custom::placeholder {
            color: #666;
            font-size: 16px;
        }

        .form-control-custom:focus {
            border-bottom-color: var(--accent-color);
        }

        input.wpcf7-form-control.wpcf7-submit,
        .wpcf7-form .wpcf7-submit,
        .wpcf7-form input[type="submit"] {
            background: var(--accent-color) !important;
            background-color: var(--accent-color) !important;
            color: #000 !important;
            border: 1px solid var(--accent-color) !important;
            border-radius: 999px !important;
            padding: 14px 28px !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            letter-spacing: 0.08em !important;
            text-transform: uppercase !important;
            transition: 0.3s ease !important;
            box-shadow: 0 0 20px rgba(40, 233, 140, 0.18) !important;
            cursor: pointer !important;
        }

        input.wpcf7-form-control.wpcf7-submit:hover,
        .wpcf7-form .wpcf7-submit:hover,
        .wpcf7-form input[type="submit"]:hover {
            background: transparent !important;
            background-color: transparent !important;
            color: var(--accent-color) !important;
            border-color: var(--accent-color) !important;
            box-shadow: 0 0 25px rgba(40, 233, 140, 0.35) !important;
        }

        /* Custom Select Dropdown Styling */
        select.form-control-custom option {
            background-color: var(--bg-dark);
            color: #fff;
        }

        .file-upload-label {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 10px;
            width: 100%;
            max-width: 100%;
            min-height: 120px;
            padding: 18px 16px;
            border: 1px dashed rgba(255, 255, 255, 0.28);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.02);
            color: #fff;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .file-upload-label:hover,
        .file-upload-label:focus-within {
            color: var(--accent-color);
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(40, 233, 140, 0.12);
        }

        .file-upload-label .wpcf7-form-control-wrap,
        .file-upload-label .wpcf7-form-control-wrap input[type="file"],
        .file-upload-label input[type="file"],
        .wpcf7-form-control-wrap input[type="file"],
        .wpcf7-form input[type="file"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }

        .wpcf7-form-control-wrap input[type="file"]::file-selector-button,
        .wpcf7-form input[type="file"]::file-selector-button {
            display: none;
        }

        .file-upload-label .fa,
        .file-upload-label i {
            font-size: 24px;
            margin-bottom: 4px;
        }

        .file-upload-label span,
        .file-upload-label .small {
            position: relative;
            z-index: 1;
        }

        .cursor-pointer {
            cursor: pointer;
        }

        /* Specific spacing for text leading */
        .leading-relaxed {
            line-height: 1.8;
        }

        /* Final adjustments for the Hire Me button in sidebar to match contact style */
        .btn-success-custom:active {
            transform: scale(0.98);
        }

        .menu-container a.active {
            color: var(--accent-color) !important;
        }
         /* Purani styles ke sath ye add/update karein */
    .menu-container .nav-link {
        color: #666;
        font-size: 20px;
        transition: 0.3s;
        text-decoration: none;
        padding: 0;
        /* Bootstrap padding hatane ke liye */
    }

    /* Jab bootstrap 'active' class lagaye toh color green ho jaye */
    .menu-container .nav-link.active {
        color: var(--accent-color) !important;
    }

    @keyframes pulseWiggle {

        0%,
        10% {
            transform: scale(1) rotate(0);
        }

        15% {
            transform: scale(1.05) rotate(-3deg);
        }

        20% {
            transform: scale(1.05) rotate(3deg);
        }

        25% {
            transform: scale(1.05) rotate(-3deg);
        }

        30% {
            transform: scale(1) rotate(0);
        }

        100% {
            transform: scale(1) rotate(0);
        }
    }

    .btn-pulse {
        animation: pulseWiggle 3s infinite;
    }

#typed-text {
            display: inline-block;
            white-space: nowrap;
            vertical-align: baseline;
        }

        .typed-cursor {
        color: var(--accent-color);
    }

    /* ============================================
       FORM POPUP/MODAL STYLES
       ============================================ */

    .form-popup-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        backdrop-filter: blur(8px);
    }

    .form-popup-modal.show {
        opacity: 1;
        pointer-events: all;
    }

    .form-popup-content {
        background: linear-gradient(135deg, rgba(31, 31, 31, 0.98) 0%, rgba(17, 17, 17, 0.98) 100%);
        border: 1px solid var(--border-color);
        border-radius: 25px;
        padding: 28px 24px 24px;
        text-align: center;
        max-width: 760px;
        width: min(90vw, 760px);
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                    0 0 40px rgba(40, 233, 140, 0.1);
        transform: translateY(-150px) scale(0.96);
        opacity: 0;
        transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .form-popup-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    }

    .form-popup-modal.show .form-popup-content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .form-popup-content.slideOut {
        transform: translateY(-150px) scale(0.96) !important;
        opacity: 0 !important;
    }

    .popup-form-header {
        text-align: left;
        margin-bottom: 22px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .popup-form-kicker {
        display: inline-block;
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--accent-color);
        margin-bottom: 8px;
    }

    .popup-form-header h3 {
        margin: 0;
        color: #fff;
        font-size: clamp(28px, 3vw, 42px);
        font-weight: 700;
        letter-spacing: -0.04em;
    }

    .form-popup-panel.hidden {
        display: none !important;
    }

    .form-popup-form {
        text-align: left;
    }

    .form-popup-form .wpcf7 {
        width: 100%;
    }

    .form-popup-form .wpcf7-form {
        display: flex;
        flex-wrap: wrap;
        gap: 18px 22px;
        width: 100%;
    }

    .form-popup-form .wpcf7-form > p {
        width: calc(50% - 11px);
        margin: 0;
        min-width: 0;
    }

    .form-popup-form .wpcf7-form > p:nth-child(5),
    .form-popup-form .wpcf7-form > p:nth-child(6),
    .form-popup-form .wpcf7-form > p:nth-child(7),
    .form-popup-form .wpcf7-form > p:nth-child(8),
    .form-popup-form .wpcf7-form > p:last-child {
        width: 100%;
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control-wrap {
        display: block;
        width: 100%;
    }

    .form-popup-form .wpcf7-form label,
    .form-popup-form .wpcf7-form .wpcf7-form-control-wrap {
        display: block;
        width: 100%;
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control-wrap label {
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.88);
        font-weight: 700;
        margin-bottom: 10px;
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control,
    .form-popup-form .wpcf7-form select,
    .form-popup-form .wpcf7-form textarea {
        width: 100%;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        color: #fff;
        padding: 14px 14px;
        font-size: 16px;
        min-height: 52px;
        transition: 0.25s ease;
    }

    .form-popup-form .wpcf7-form textarea {
        min-height: 120px;
        resize: vertical;
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control:focus,
    .form-popup-form .wpcf7-form select:focus,
    .form-popup-form .wpcf7-form textarea:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(40, 233, 140, 0.12);
        outline: none;
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control::-webkit-input-placeholder,
    .form-popup-form .wpcf7-form textarea::-webkit-input-placeholder {
        color: rgba(255, 255, 255, 0.38);
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control::-moz-placeholder,
    .form-popup-form .wpcf7-form textarea::-moz-placeholder {
        color: rgba(255, 255, 255, 0.38);
    }

    .form-popup-form .wpcf7-form .wpcf7-form-control::placeholder,
    .form-popup-form .wpcf7-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.38);
    }

    .form-popup-form .wpcf7-form input[type="file"] {
        width: 100%;
        max-width: 100%;
        min-height: 120px;
        border: 1px dashed rgba(255, 255, 255, 0.25);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        color: #fff;
        padding: 22px 16px;
        cursor: pointer;
    }

    .form-popup-form .wpcf7-form input[type="file"]::file-selector-button {
        display: none;
    }

    .form-popup-form .wpcf7-form .wpcf7-submit {
        background: var(--accent-color) !important;
        color: #000 !important;
        border: 1px solid var(--accent-color) !important;
        border-radius: 999px !important;
        padding: 14px 28px !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
        min-width: 220px;
        margin-top: 10px !important;
        float: right;
    }

    .form-popup-form .wpcf7-form .wpcf7-submit:hover {
        background: transparent !important;
        color: var(--accent-color) !important;
    }

    .form-popup-success {
        text-align: center;
        padding: 20px 10px 10px;
    }

    .form-popup-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(40, 233, 140, 0.1);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        font-size: 28px;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .form-popup-close:hover {
        background: var(--accent-color);
        color: #000;
        transform: rotate(90deg);
        border-color: var(--accent-color);
    }

    .form-popup-icon {
        font-size: 70px;
        margin-bottom: 25px;
        animation: iconBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
        display: inline-block;
    }

    .form-popup-title {
        font-size: 32px;
        color: var(--text-primary);
        margin: 0 0 12px 0;
        font-weight: 700;
        letter-spacing: 0.8px;
    }

    .form-popup-message {
        font-size: 16px;
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.7;
        font-weight: 400;
    }

    /* Animations */
    @keyframes iconBounce {
        0% {
            transform: scale(0) rotate(-30deg);
            opacity: 0;
        }
        50% {
            transform: scale(1.2) rotate(10deg);
        }
        100% {
            transform: scale(1) rotate(0);
            opacity: 1;
        }
    }

    /* Contact Form 7 Styles - Hide Default Messages */
    .wpcf7 .screen-reader-response {
        display: none !important;
    }

    .wpcf7-form-control-wrap {
        display: block;
    }

    .wpcf7-response-output {
        display: none !important;
    }

    div.wpcf7-mail-sent-ok {
        display: none !important;
    }

    div.wpcf7-mail-sent-ng {
        display: none !important;
    }

    div.wpcf7-validation-errors {
        display: none !important;
    }

    div.wpcf7-spam {
        display: none !important;
    }
    @media (max-width: 768px) {
        .form-popup-content {
            padding: 45px 35px;
            margin: 20px;
            max-width: 90%;
            border-radius: 20px;
        }

        .form-popup-title {
            font-size: 26px;
            letter-spacing: 0.5px;
        }

        .form-popup-message {
            font-size: 14px;
            line-height: 1.6;
        }

        .form-popup-icon {
            font-size: 55px;
            margin-bottom: 20px;
        }

        .form-popup-close {
            font-size: 24px;
            width: 40px;
            height: 40px;
        }
    }

