/* About Page Specific Styles - SaintChannel */

/* Hero Section */
.hero-about {
    background: linear-gradient(135deg, var(--st-dark) 0%, var(--st-dark-surface) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.text-gradient {
    background: var(--st-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.profile-container {
    position: relative;
    display: inline-block;
}

.profile-main {
    max-width: 400px;
    border: 3px solid var(--st-primary);
    transition: all 0.3s ease;
}

.profile-main:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.3);
}

.profile-overlay {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.tech-badges .badge {
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 2rem;
}

.bg-gradient-primary {
    background: var(--st-gradient-primary) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--st-secondary) 0%, #a855f7 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Timeline Styles */
.story-section {
    background: var(--st-dark);
    position: relative;
}

.story-timeline {
    position: relative;
    padding-left: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--st-primary), var(--st-primary-light), var(--st-green-neon));
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    animation: growLine 2.5s ease-out forwards;
}

@keyframes growLine {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
    /* Stato iniziale nascosto ma senza visibility hidden */
    opacity: 0;
    transform: translateY(40px);
}

/* Attiva animazione solo quando JS aggiunge la classe */
.timeline-item.animate {
    animation: slideInFromBottom 0.8s ease-out forwards;
}

.timeline-item.animate:nth-child(1) { animation-delay: 0.10s; }
.timeline-item.animate:nth-child(2) { animation-delay: 0.25s; }
.timeline-item.animate:nth-child(3) { animation-delay: 0.40s; }
.timeline-item.animate:nth-child(4) { animation-delay: 0.55s; }
.timeline-item.animate:nth-child(5) { animation-delay: 0.70s; }
.timeline-item.animate:nth-child(6) { animation-delay: 0.85s; }

/* Il primo blocco della timeline deve essere sempre visibile */
.story-timeline > .timeline-item:first-child {
    opacity: 1;
    transform: none;
}
.story-timeline > .timeline-item:first-child .timeline-marker {
    opacity: 1;
    transform: scale(1);
    animation: none !important;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--st-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.4);
    border: 3px solid var(--st-dark);
    /* Stato iniziale */
    opacity: 0;
    transform: scale(0.5);
}

/* Attiva animazione marker solo quando il relativo item è animato */
.timeline-item.animate .timeline-marker {
    animation: popInMarker 0.6s ease-out forwards;
}

.timeline-item.animate:nth-child(1) .timeline-marker { animation-delay: 0.05s; }
.timeline-item.animate:nth-child(2) .timeline-marker { animation-delay: 0.20s; }
.timeline-item.animate:nth-child(3) .timeline-marker { animation-delay: 0.35s; }
.timeline-item.animate:nth-child(4) .timeline-marker { animation-delay: 0.50s; }
.timeline-item.animate:nth-child(5) .timeline-marker { animation-delay: 0.65s; }
.timeline-item.animate:nth-child(6) .timeline-marker { animation-delay: 0.80s; }

@keyframes popInMarker {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-marker:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Timeline Markers - Specific Icons */
.timeline-marker .fa-sun {
    color: #f59e0b;
}

.timeline-marker .fa-rocket {
    color: #8b5cf6;
}

.timeline-marker .fa-lightbulb {
    color: #fbbf24;
}

.timeline-marker .fa-code {
    color: #10b981;
}

.timeline-marker .fa-brain {
    color: #06b6d4;
}

.timeline-content {
    background: var(--st-dark-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 157, 0.15);
}

.timeline-content h3 {
    color: var(--st-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-content strong,
.timeline-content em {
    color: var(--st-primary-light);
}

.timeline-content ul {
    padding-left: 1.5rem;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

/* Passion Cards */
.passions-section {
    background: var(--st-dark-surface);
    position: relative;
}

.passions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.passion-card {
    background: var(--st-dark-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.passion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--st-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.passion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.2);
}

.passion-card:hover::before {
    transform: scaleX(1);
}

.passion-icon {
    font-size: 3rem;
    color: var(--st-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.passion-card h3 {
    color: var(--st-primary-light);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.passion-card p {
    line-height: 1.6;
    color: #cbd5e1;
}

/* Skills Section */
.skills-section {
    background: var(--st-dark);
    position: relative;
}

.skill-category {
    background: var(--st-dark-card);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    color: var(--st-primary);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 2px solid var(--st-primary);
    padding-bottom: 0.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #f1f5f9;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--st-gradient-primary);
    border-radius: 4px;
    transition: width 2s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* Engineering Principles */
.engineering-principles {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.principle-card {
    background: var(--st-dark-card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.principle-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.principle-card h4 {
    color: var(--st-primary-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.principle-card p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.875rem;
}

/* Current Focus Section */
.current-focus {
    background: linear-gradient(135deg, var(--st-dark-surface) 0%, var(--st-dark) 100%);
    position: relative;
}

.current-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(0, 255, 157, 0.08) 0%, transparent 60%),
        linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
}

.focus-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.focus-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.focus-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.focus-item h3 {
    color: var(--st-primary-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.focus-item p {
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    background: var(--st-dark);
    position: relative;
}

.contact-form-container {
    background: var(--st-dark-card);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-info {
    margin-top: 3rem;
}

.contact-section .contact-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: var(--st-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-section .contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 157, 0.15);
}

.contact-section .contact-item i {
    font-size: 2rem;
    color: var(--st-primary);
    margin-bottom: 1rem;
}

.contact-section .contact-item h4 {
    color: var(--st-primary-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-section .contact-item p {
    margin: 0;
    color: #94a3b8;
}

.contact-section .contact-item a {
    color: var(--st-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section .contact-item a:hover {
    color: var(--st-primary-light);
}

/* Button Animations */
.btn-stchannel-primary,
.btn-stchannel-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-stchannel-primary:hover,
.btn-stchannel-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.3);
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-about {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .profile-main {
        max-width: 350px;
    }
    
    .engineering-principles .row {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-about {
        padding: 3rem 0;
    }
    
    .profile-main {
        max-width: 300px;
    }
    
    .story-timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -2.5rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .passion-card,
    .skill-category {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .focus-item {
        padding: 1.5rem;
    }
    
    .focus-item i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-about .display-4 {
        font-size: 2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .passion-icon {
        font-size: 2.5rem;
    }
    
    .engineering-principles .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Working Style & Personality Traits */
.working-style {
    margin-top: 3rem;
}

.personality-trait {
    background: var(--st-dark-card);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--st-border);
    transition: all 0.3s ease;
}

.personality-trait:hover {
    transform: translateY(-5px);
    border-color: var(--st-primary);
    box-shadow: 0 10px 30px rgba(75, 85, 99, 0.2);
}

.trait-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.trait-header i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.trait-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.trait-score {
    background: var(--st-primary);
    color: var(--st-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.personality-trait p {
    margin: 0;
    color: var(--st-text-muted);
    line-height: 1.6;
}

/* Responsive adjustments for 4-column layout */
@media (max-width: 1200px) {
    .col-lg-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .skills-section .row {
        flex-direction: column;
    }
    
    .col-lg-3 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .skill-category {
        margin-bottom: 2rem;
    }
}

/* AI Expertise Section */
.ai-expertise-section {
    background: var(--st-dark);
}

.ai-platform-card {
    background: var(--st-dark-card);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--st-border);
    transition: all 0.3s ease;
    text-align: center;
}

.ai-platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--st-primary);
    box-shadow: 0 15px 40px rgba(75, 85, 99, 0.3);
}

.ai-platform-icon {
    margin-bottom: 1.5rem;
}

.ai-platform-icon i {
    font-size: 3rem;
}

.ai-platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ai-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.ai-feature {
    background: var(--st-primary);
    color: var(--st-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.ai-approach {
    background: var(--st-dark-card);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--st-border);
}

/* Brand Experience Section */
.brand-experience {
    background: var(--st-dark-surface);
}

.brand-category-card {
    background: var(--st-dark-card);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--st-border);
    transition: all 0.3s ease;
    text-align: center;
}

.brand-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--st-secondary);
    box-shadow: 0 10px 30px rgba(75, 85, 99, 0.2);
}

.brand-category-icon {
    margin-bottom: 1.5rem;
}

.brand-category-icon i {
    font-size: 2.5rem;
}

.brand-category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.note-card {
    background: var(--st-dark-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--st-border);
    border-left: 4px solid var(--st-primary);
}

.note-card i {
    font-size: 1.5rem;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .hero-about {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

/* Print styles */
@media print {
    .hero-about,
    .contact-section {
        background: white !important;
        color: black !important;
    }
    
    .timeline-marker,
    .passion-icon,
    .contact-section .contact-item i {
        color: #333 !important;
    }
}
