/* PortaLink Premium Design System - Inspired by Top UI/UX Agencies */

/* ============================================
   DESIGN TOKENS & VARIABLES
   ============================================ */
:root {
    /* Premium Color Palette */
    --color-primary: #0F172A;        /* Deep Navy */
    --color-primary-light: #1E293B;
    --color-accent: #3B82F6;         /* Electric Blue */
    --color-accent-dark: #2563EB;
    --color-success: #10B981;        /* Emerald */
    --color-warning: #F59E0B;        /* Amber */
    --color-gold: #FCD34D;           /* Gold for premium */
    --color-gradient-start: #3B82F6;
    --color-gradient-end: #8B5CF6;   /* Purple */
    
    /* Neutral Palette */
    --color-white: #FFFFFF;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;
    
    /* Typography Scale */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 50px rgba(59, 130, 246, 0.5);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.display-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* ============================================
   PREMIUM COMPONENTS
   ============================================ */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.8);
}

/* Premium Gradient Backgrounds */
.gradient-premium {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
}

.gradient-mesh {
    background-color: #3B82F6;
    background-image: 
        radial-gradient(at 47% 33%, hsl(217, 91%, 60%) 0, transparent 50%),
        radial-gradient(at 82% 65%, hsl(198, 100%, 50%) 0, transparent 50%),
        radial-gradient(at 23% 85%, hsl(270, 91%, 65%) 0, transparent 50%);
}

/* Animated Gradient */
.gradient-animated {
    background: linear-gradient(-45deg, #3B82F6, #8B5CF6, #EC4899, #3B82F6);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Premium Buttons */
.btn-premium {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    z-index: -1;
    transition: opacity var(--transition-base);
    opacity: 0;
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Magnetic Button Effect */
.btn-magnetic {
    position: relative;
    transition: transform var(--transition-spring);
}

/* Neumorphism Elements */
.neumorphic {
    background: var(--color-gray-100);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.1),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
}

.neumorphic-inset {
    background: var(--color-gray-100);
    box-shadow: 
        inset 8px 8px 16px rgba(0, 0, 0, 0.1),
        inset -8px -8px 16px rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
}

/* Floating Labels */
.floating-label {
    position: relative;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--color-accent);
}

.floating-label label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    transition: all var(--transition-base);
    pointer-events: none;
}

/* Premium Badges */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-gold), var(--color-warning));
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Smooth Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Scrolling Elements */
.parallax {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Blob Shapes */
.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

/* Premium Loading States */
.skeleton {
    background: linear-gradient(90deg, 
        var(--color-gray-200) 25%, 
        var(--color-gray-100) 50%, 
        var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* FAQ Premium Styling - FIXED */
.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-toggle {
    width: 100%;
    padding: 1.5rem 2rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-toggle:hover {
    background: rgba(30, 58, 138, 0.02);
}

.faq-content {
    padding: 0 2rem 1.5rem 2rem;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-content.block {
    display: block !important;
    max-height: 500px !important;
    padding: 0 2rem 2rem 2rem !important;
}

.faq-content p {
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

.faq-item.active {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02), rgba(59, 130, 246, 0.02));
    border-color: rgba(30, 58, 138, 0.1);
    z-index: 10;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Micro-interactions */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform var(--transition-spring);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Premium Text Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-premium {
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Custom Cursor */
.cursor-pointer-premium {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="%233B82F6" opacity="0.5"/></svg>'), pointer;
}

/* Responsive Design Utilities */
@media (max-width: 768px) {
    .display-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}

/* Print Utilities */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility Improvements */
.focus-visible:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
}