/* ================================
   EkNaam Studios - Components
   Reusable UI Components
   ================================ */

/* === GLASSMORPHISM CARD === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    transition: all var(--duration-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-smooth);
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover {
    transform: scale(1.03);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    box-shadow: var(--shadow-glow);
}

.glass-card:hover::before {
    opacity: 1;
}

/* === BUTTONS === */

/* Primary Glow Button */
/* Primary Glow Button - Premium Redefined */
.glow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--accent-red), #DC143C);
    color: #FFFFFF;
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: box-shadow var(--duration-base) var(--ease-smooth), transform var(--duration-base) var(--ease-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Contains the animation strictly within button shape */
}

/* 1. The Moving Gradient Layer (The "Border" Source) - Hidden by default */
.glow-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    /* A subtle "comet" gradient, not a fan */
    background: conic-gradient(from 0deg, transparent 0%, transparent 80%, var(--accent-red) 100%);
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: none;
}

/* 2. The Inner Charcoal Mask (Creates the "Border" by covering center) - Hidden by default */
.glow-button::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Defines the 2px border thickness */
    background: var(--bg-secondary);
    /* Charcoal base */
    /* Add a subtle shine gradient on top of charcoal */
    background-image: linear-gradient(110deg, var(--bg-secondary) 45%, rgba(255, 255, 255, 0.15) 50%, var(--bg-secondary) 55%);
    background-size: 200% 100%;
    /* Make gradient large enough to slide */
    background-position: 100% 0;
    /* Start off-screen */
    border-radius: 999px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Hover State */
.glow-button:hover {
    transform: translateY(-2px);
    color: #FFFFFF !important;
    /* The White Glow Shadow asked by user */
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.35) !important;
    background: transparent !important;
    /* Reveal the pseudo elements */
}

/* Activate the internal layers */
.glow-button:hover::before {
    opacity: 1;
    animation: subtleSpin 3s linear infinite;
    /* Smooth rotation for border */
}

.glow-button:hover::after {
    opacity: 1;
    animation: internalShine 1.5s ease-in-out infinite;
    /* Smooth internal shine */
}

.glow-button:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Smooth Spin Animation */
@keyframes subtleSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Internal Shine Animation */
@keyframes internalShine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Secondary Button (Outline) */
.button-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-smooth);
    cursor: pointer;
    text-decoration: none;
}

.button-outline:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* === SECTION HEADING === */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-heading h2 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-black);
    margin-bottom: var(--space-4);
    letter-spacing: var(--tracking-tight);
}

.section-heading p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === TRUST BADGE === */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
}

.trust-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    color: var(--accent-red);
}

/* === SERVICE CARD === */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--duration-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-smooth);
    pointer-events: none;
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(198, 168, 92, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform var(--duration-slower) var(--ease-smooth);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    transform: translateX(100%);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-6);
    color: var(--accent-red);
}

.service-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.service-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-red);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    transition: gap var(--duration-base) var(--ease-smooth);
}

.service-card-link:hover {
    gap: var(--space-3);
}

/* === PACKAGE CARD === */
.package-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    transition: all var(--duration-base) var(--ease-smooth);
    position: relative;
}

.package-card.featured {
    border-color: var(--accent-red);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.package-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-smooth);
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-2xl);
}

.package-card:hover::after {
    opacity: 1;
}

.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: #FFFFFF;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(198, 168, 92, 0.4);
    z-index: 10;
}

.package-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
}

.package-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

.package-card h3 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    margin-top: var(--space-2);
}

.package-card-features {
    list-style: none;
    margin: var(--space-6) 0;
}

.package-card-features li {
    padding: var(--space-3) 0;
    padding-left: var(--space-8);
    position: relative;
    color: var(--text-secondary);
}

.package-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: var(--weight-bold);
}

/* === TESTIMONIAL CARD === */
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--duration-base) var(--ease-smooth);
}

.testimonial-card:hover {
    background: var(--glass-bg-hover);
    box-shadow: 0 0 30px rgba(198, 168, 92, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-red);
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.testimonial-author {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
}

/* === FAQ ITEM === */
.faq-item {
    border-bottom: 1px solid var(--glass-border);
    transition: border-color var(--duration-base) var(--ease-smooth);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-6);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--duration-base) var(--ease-smooth);
    text-align: left;
}

.faq-question:hover {
    color: var(--accent-red);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--duration-base) var(--ease-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-smooth), padding var(--duration-slow) var(--ease-smooth);
    padding: 0 var(--space-6);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-6) var(--space-6) var(--space-6);
}

.faq-answer p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

/* === SOCIAL ICON === */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all var(--duration-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    border-color: var(--accent-red);
    background: rgba(198, 168, 92, 0.1);
    transform: translateY(-4px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

/* === CONTACT SPLIT LAYOUT === */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-20);
    align-items: flex-start;
}

.contact-info-panel h2 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.05);
    border: 1px solid rgba(230, 57, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === GLASS FORM & INPUTS === */
.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow for form container */
.glass-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.5), transparent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--text-base);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.form-input:focus {
    outline: none;
    border-color: rgba(230, 57, 70, 0.5);
    background: rgba(230, 57, 70, 0.02);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: var(--space-10);
    cursor: pointer;
}

.select-indicator {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

/* Budget Cards (Custom Radios) */
.budget-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.budget-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.budget-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.budget-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-smooth);
    text-align: center;
}

.budget-range {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.budget-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* Active State for Budget Card */
.budget-card input[type="radio"]:checked~.budget-content {
    background: rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.15);
}

.budget-card:hover .budget-content {
    border-color: rgba(255, 255, 255, 0.15);
}


/* === RESPONSIVE === */
@media (max-width: 767px) {
    .glass-card {
        padding: var(--space-6);
    }

    .service-card,
    .package-card {
        padding: var(--space-6);
    }

    .package-card.featured {
        transform: scale(1);
    }

    .package-card.featured:hover {
        transform: translateY(-8px) scale(1);
    }

    /* Contact Form Responsiveness */
    .contact-split {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .contact-info-panel h2 {
        font-size: var(--text-3xl);
    }

    .form-row,
    .budget-radio-grid {
        grid-template-columns: 1fr;
    }

    .glass-form {
        padding: var(--space-6);
    }
}