/* Personality Page Specific Styles */

/* Page-specific overrides */
.personality-page {
    background: #0a0a0a;
    overflow-x: hidden;
}

.personality-page .smoke-container {
    opacity: 0.7; /* Slightly reduce particles for better readability */
}

/* Hero Section */
.hero-section {
    padding: 12rem 2rem 8rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 2rem 0;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Personality Grid */
.personality-grid {
    padding: 4rem 2rem 8rem;
    position: relative;
    z-index: 1;
}

.grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    grid-auto-rows: auto;
}

/* Card Styles */
.personality-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.personality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.personality-card:hover::before {
    transform: translateX(100%);
}

.personality-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
}

.personality-card.large {
    grid-column: span 2;
}

/* Stagger animations */
.personality-card:nth-child(1) { animation-delay: 0.1s; }
.personality-card:nth-child(2) { animation-delay: 0.2s; }
.personality-card:nth-child(3) { animation-delay: 0.3s; }
.personality-card:nth-child(4) { animation-delay: 0.4s; }
.personality-card:nth-child(5) { animation-delay: 0.5s; }
.personality-card:nth-child(6) { animation-delay: 0.6s; }

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Card Content */
.card-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Values List */
.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.value-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: rgba(102, 126, 234, 0.8);
    transform: translateX(5px);
}

.value-title {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.value-desc {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Trait Grid */
.trait-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trait-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trait-label {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9rem;
}

.trait-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.trait-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-out 0.5s;
    position: relative;
    overflow: hidden;
}

.trait-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Philosophy */
.philosophy-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #ffffff;
    margin: 0 0 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid rgba(102, 126, 234, 0.5);
    position: relative;
}

.philosophy-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 1rem;
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.5);
    font-family: 'Georgia', serif;
}

.philosophy-principles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.principle {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.principle:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.principle h4 {
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.principle p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Interest Tags */
.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest-tag {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    cursor: default;
}

.interest-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* Working Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.style-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.style-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.style-item h4 {
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.style-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Fun Facts */
.fun-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.fact-emoji {
    font-size: 1.5rem;
    min-width: 32px;
    text-align: center;
}

.fact-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.cta-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.cta-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Brand link styling */
.nav-brand a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-brand a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Active nav link */
.nav-link.active {
    color: #667eea;
    position: relative;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .personality-card.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 10rem 1rem 6rem;
    }
    
    .personality-grid {
        padding: 2rem 1rem 6rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .personality-card {
        padding: 1.5rem;
    }
    
    .philosophy-principles,
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .personality-card {
        padding: 1.25rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .interest-tags {
        gap: 0.5rem;
    }
    
    .interest-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Intersection Observer Animation Trigger */
.personality-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Trait bar animation trigger */
.trait-fill.animate {
    width: var(--level);
}

/* Special animations for specific cards */
.personality-card[data-category="values"]:hover .value-list li {
    animation: pulse 0.6s ease-in-out;
}

.personality-card[data-category="interests"]:hover .interest-tag {
    animation: float 2s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Scroll indicator */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.5), transparent);
    animation: scrollIndicator 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}