/* Solopreneur Modal Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: rgba(0,0,0,0.05);
    color: #333;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2a9d8f; /* Pastel Theme Green */
    text-align: center;
    letter-spacing: 2px;
}

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

.service-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #2a9d8f;
}

.service-card h3 {
    font-family: 'Exo 2', sans-serif;
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #a8dadc;
    padding-bottom: 0.5rem;
}

.service-focus {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-weight: 600;
    color: #2a9d8f;
    margin-bottom: 1rem;
}

.service-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.service-details li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.4;
}

.service-details li::before {
    content: "•";
    color: #2a9d8f;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-pitch {
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 4px solid #2a9d8f;
}


/* =========================================
   NEW "SCRIBBLE" BUTTON DESIGN
   ========================================= */

.btn-scribble-container {
    position: relative;
    display: inline-block;
    margin-top: 1.5rem;
    cursor: pointer;
}

.btn-scribble {
    position: relative;
    background: transparent;
    border: none;
    color: #2a9d8f;
    font-family: "Exo 2", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s;
}

/* Base Pill Shape to match tags */
.btn-scribble-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.scribble-path {
    fill: none;
    stroke: #2a9d8f;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300; /* Hidden initially */
    transition: stroke-dashoffset 0.6s ease-out;
}

/* The Loop: A pseudo-random SVG path I will inject in HTML */

/* Hover State */
.btn-scribble-container:hover .scribble-path {
    stroke-dashoffset: 0; /* Draw the line */
}

.btn-scribble-container:hover .btn-scribble {
    color: #238b7e;
    transform: scale(1.05);
}

/* "Sleek & Shiny" Animated Border Style */
.btn-scribble-static {
    /* Tag Base Styles */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #2a9d8f; /* Match tag text (Teal) */
    background: #e8f5e9; /* Match tag bg (Pastel Green/Grey) */
    
    /* Box Sizing & Positioning */
    border: none;
    font-family: inherit;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* FIX: Force on top of any overlays */
    position: relative;
    z-index: 1000 !important;
    pointer-events: auto !important;
    overflow: hidden; /* Reverted to hidden to clip the spinning border animation */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The Animated Gradient Border */
.btn-scribble-static::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(42, 157, 143, 0.3), 
        rgba(42, 157, 143, 0.9), 
        rgba(42, 157, 143, 0.3), 
        transparent
    );
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

/* Inner Background to mask the center */
.btn-scribble-static::after {
    content: '';
    position: absolute;
    inset: 2px; /* Border thickness */
    background: #e8f5e9; /* Match tag bg */
    border-radius: 18px; /* Slightly less than parent */
    z-index: -1;
}

.btn-scribble-static:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.2);
    /* Keep text color consistent or slightly darker valid */
    color: #238b7e; 
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
