/* Trademark Registration Services - Custom Styles */
/* Based on Court Marriage Template Design */

/* Root Variables */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2b77ad;
    --accent-color: #4299e1;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Animation Keyframes */
@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    25% { transform: translate(10px, -15px) scale(1.1); opacity: 0.9; }
    50% { transform: translate(-10px, -25px) scale(0.9); opacity: 0.5; }
    75% { transform: translate(15px, -10px) scale(1.05); opacity: 0.8; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3); transform: scale(1); }
    50% { box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5); transform: scale(1.02); }
}

@keyframes floatingElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Button Animations */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}

.pulse-glow:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

/* Floating Animation for Background Elements */
.floating-animation {
    animation: floatingElement 6s ease-in-out infinite;
}

/* Card Hover Effects */
.trademark-service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trademark-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.trademark-service-card:hover::before {
    left: 100%;
}

.trademark-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Service Grid Layout */
.trademark-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Icon Container Styles */
.trademark-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.trademark-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(10px);
    opacity: 0.3;
    transform: scale(1.2);
}

.trademark-icon-container i {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    color: white;
}

/* Process Timeline Styles */
.trademark-process-timeline {
    position: relative;
    padding: 2rem 0;
}

.trademark-process-step {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--accent-color);
}

.trademark-process-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.trademark-process-timeline {
    counter-reset: step-counter;
}

/* Pricing Card Styles */
.trademark-pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trademark-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.trademark-pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-dark);
}

.trademark-pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-dark);
}

.trademark-pricing-card.featured::before {
    background: var(--gradient-secondary);
}

/* Benefits Grid */
.trademark-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.trademark-benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.trademark-benefit-item:nth-child(1) { border-top-color: #6366f1; }
.trademark-benefit-item:nth-child(2) { border-top-color: #10b981; }
.trademark-benefit-item:nth-child(3) { border-top-color: #f59e0b; }
.trademark-benefit-item:nth-child(4) { border-top-color: #ef4444; }
.trademark-benefit-item:nth-child(5) { border-top-color: #8b5cf6; }
.trademark-benefit-item:nth-child(6) { border-top-color: #06b6d4; }

.trademark-benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
}

/* Image Overlay Effects */
.trademark-image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.trademark-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trademark-image-overlay:hover::before {
    opacity: 1;
}

/* Statistics Counter */
.trademark-stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Call-to-Action Section */
.trademark-cta-section {
    background: var(--gradient-dark);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.trademark-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23grad)"/><circle cx="80" cy="40" r="3" fill="url(%23grad)"/><circle cx="40" cy="80" r="2" fill="url(%23grad)"/></svg>') repeat;
    animation: particleFloat 20s linear infinite;
}

/* Form Styles */
.trademark-form-group {
    margin-bottom: 1.5rem;
}

.trademark-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.trademark-form-group input,
.trademark-form-group select,
.trademark-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.trademark-form-group input:focus,
.trademark-form-group select:focus,
.trademark-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67, 153, 225, 0.1);
}

/* Progress Bar */
.trademark-progress-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 1rem 0;
}

.trademark-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trademark-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trademark-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trademark-pricing-card.featured {
        transform: none;
        margin: 1rem 0;
    }
    
    .trademark-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .trademark-icon-container i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .trademark-service-card {
        padding: 1.5rem;
    }
    
    .trademark-pricing-card {
        padding: 2rem;
    }
    
    .trademark-benefit-item {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .trademark-cta-section,
    .floating-animation {
        display: none;
    }
    
    .trademark-service-card,
    .trademark-pricing-card,
    .trademark-benefit-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --accent-color: #0066cc;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .trademark-service-card,
    .trademark-pricing-card,
    .trademark-benefit-item {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a202c;
        --bg-card: #2d3748;
        --text-dark: #f7fafc;
        --text-light: #e2e8f0;
        --border-color: #4a5568;
    }
    
    body {
        background: var(--bg-light);
        color: var(--text-dark);
    }
    
    .trademark-service-card,
    .trademark-pricing-card,
    .trademark-benefit-item {
        background: var(--bg-card);
        color: var(--text-dark);
    }
}

/* Trademark Classes Specific Styles */
.trademark-classes-section {
    position: relative;
    overflow: hidden;
}

.trademark-classes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.02) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(16, 185, 129, 0.02) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(59, 130, 246, 0.02) 75%),
                linear-gradient(-45deg, transparent 75%, rgba(16, 185, 129, 0.02) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    animation: backgroundMove 30s linear infinite;
    z-index: -1;
}

.trademark-class-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.trademark-class-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trademark-class-number {
    transition: all 0.3s ease;
}

.trademark-class-item:hover .trademark-class-number {
    transform: scale(1.1);
}

/* Classification Info Cards */
.classification-info-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.classification-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for trademark classes */
@media (max-width: 768px) {
    .trademark-classes-content {
        padding: 0 1rem !important;
    }
    
    .trademark-classes-section h2 {
        font-size: 2rem !important;
    }
    
    .trademark-classes-section h3 {
        font-size: 1.8rem !important;
    }
    
    .trademark-classes-section .grid {
        grid-template-columns: 1fr !important;
    }
    
    .trademark-class-item {
        margin-bottom: 0.5rem;
        padding: 0.6rem;
    }
    
    .trademark-class-item span:first-child {
        min-width: 35px !important;
        font-size: 0.8rem;
    }
    
    .trademark-class-item span:last-child {
        font-size: 0.8rem;
    }
}

@keyframes backgroundMove {
    0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
    100% { background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px; }
}

/* Trademark Classes Grid Animation */
.trademark-classes-grid {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
