/* Portfolio Page Specific Styles */

/* Portfolio Hero */
.portfolio-hero {
    margin-top: 80px;
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/experiemcia_grafico-comic.PNG') no-repeat center center;
    background-size: cover;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    animation: subtle-flutter 12s ease-in-out infinite alternate;
}

@keyframes subtle-flutter {
    0% {
        transform: perspective(1500px) rotateY(-0.5deg) rotateX(0.5deg) scale(1.005);
    }
    100% {
        transform: perspective(1500px) rotateY(0.5deg) rotateX(-0.5deg) scale(1);
    }
}

.portfolio-hero .container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-graphic {
    display: none;
}

.hero-image {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    animation: slideInLeft 0.8s ease-out;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
    position: relative;
    margin-top: 60px;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



.portfolio-hero h1 {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 4rem; /* Updated from 3.5rem */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--coral-red); /* Updated from white */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Added drop shadow */
}

.section-description {

}

.tab-navigation {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 2rem;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.tab-navigation::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 0;
    width: 2px;
    height: 25px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 1px;
    opacity: 0.6;
    animation: fadeIn 1s ease-out 0.8s both;
}



.hero-subtitle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    max-width: 1000px;
    margin-right: 40px;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.frosted-glass-container {
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid transparent;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    animation: fadeInScale 0.8s ease-out;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.frosted-glass-container p {

}

.frosted-glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.frosted-glass-container:hover::before {
    left: 100%;
}

.frosted-glass-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: #F96F6E;
    background: rgba(45, 45, 45, 0.95);
}

.frosted-glass-container p {
    margin: 0 0 28px 0;
}

.frosted-glass-container p:last-child {
    margin-bottom: 0;
}

.frosted-glass-container strong {
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* Removed old gradient overlay styles - now using frosted glass container */

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-subtitle {
        max-width: 850px;
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    /* Reduce top spacing to bring title closer to top */
    .portfolio-hero {
        margin-top: 60px !important;
        padding: 1rem 0 !important;
        min-height: 350px;
    }
    
    .hero-content {
        margin-top: -20px !important;
    }
    
    .portfolio-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-hero .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .tab-navigation {
        margin-top: 20px;
    }
    
    .hero-subtitle {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        max-width: 100%;
        margin-right: 0;
        margin-top: 2rem;
        font-size: 18px;
        text-align: center;
    }
    
    .frosted-glass-container {
        padding: 40px;
        padding-left: 56px;
        font-size: 17px;
        backdrop-filter: blur(18px) saturate(180%);
        border-radius: 18px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    
    .frosted-glass-container p {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    /* Further reduce spacing for small screens */
    .portfolio-hero {
        margin-top: 50px !important;
        padding: 0.5rem 0 !important;
        min-height: 300px;
    }
    
    .portfolio-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .tab-navigation {
        margin-top: 0;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .frosted-glass-container {
        padding: 24px;
        padding-left: 24px;
        font-size: 16px;
        backdrop-filter: blur(15px) saturate(180%);
        border-radius: 16px;
        margin: 0 1rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.08);
        margin-right: 20px;
        margin-left: 20px;
    }
    
    .frosted-glass-container p {
        margin-bottom: 20px;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Vogue Editorial Styling */
.vogue-editorial .editorial-intro {
    font-family: 'Big Shoulders Display', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--coral-red) !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

.vogue-editorial .editorial-body {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    color: #2c2c2c !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 0.02em !important;
    font-style: normal !important;
    text-align: justify !important;
}

.vogue-editorial .editorial-closing {
    font-family: 'Playfair Display', serif !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    color: #666666 !important;
    font-style: italic !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.02em !important;
    opacity: 0.9 !important;
}

.section-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

/* Scroll Indicator Styles */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.scroll-indicator.flashing .scroll-arrow {
    animation: bounce 2s infinite, flash 3s infinite;
}

.scroll-indicator.flashing .scroll-text {
    animation: pulse 2s infinite, flash 3s infinite;
}

.scroll-arrow {
    color: var(--text-primary);
    animation: bounce 2s infinite;
}

.scroll-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes flash {
    0%, 50% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.3;
    }
}

/* Impact Overview Styles */
.impact-overview {
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
    padding: 0 1rem;
}

.primary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.primary-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.primary-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.primary-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--coral-red);
    line-height: 1;
}

.primary-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.primary-detail {
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text-secondary);
}

/* Impact Breakdown Styles */
.impact-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.breakdown-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.breakdown-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--coral-red);
    text-align: center;
}

.breakdown-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.breakdown-stat:last-child {
    border-bottom: none;
}

.breakdown-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--coral-red);
}

.breakdown-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* Performance Charts Styles */
.performance-charts .chart-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--coral-red), #ff8a80);
    border-radius: 12px;
    transition: width 1.5s ease-out;
    position: relative;
    width: 0%;
}

.progress-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.metric-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 248, 240, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 107, 0.2);
    margin-top: 0.5rem;
}

.metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--coral-red);
    line-height: 1;
}

.metric-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.25rem;
}

/* Featured Work Section */
.featured-work {
    padding: 0 0 6rem 0;
    margin-top: -2rem;
    padding-top: 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2rem;
    color: #FFFFFF !important;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--coral-red), #ff8a80);
    border-radius: 2px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    overflow-x: hidden;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.portfolio-item.featured {
    grid-column: span 2;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.portfolio-item.featured .portfolio-image {
    height: 280px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.8), rgba(255, 248, 240, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-item.featured .portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.portfolio-item.featured .portfolio-content h3 {
    font-size: 1.6rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.portfolio-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--coral-red);
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coral-red);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 107, 107, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    position: relative;
    font-size: 0.9rem;
}

.portfolio-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    color: var(--coral-red);
    transform: translateY(-2px);
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--coral-red);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.portfolio-link:hover::after {
    transform: translateX(5px);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coral-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 50px;
    border: 2px solid transparent;
}

.case-study-link:hover {
    color: var(--coral-red);
    transform: translateY(-2px);
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--coral-red);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.case-study-link i {
    transition: transform 0.3s ease;
}

.case-study-link:hover i {
    transform: translateX(3px);
}

/* Skills Section */
.skills-section {
    background: var(--bg-secondary);
    padding: 8rem 0;
    margin: 6rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--coral-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #F96F6E;
    border-radius: 2px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    position: relative;
    border-bottom: none;
    background: rgba(255, 107, 107, 0.1);
    margin: 0.5rem 0.8rem 0.5rem 0;
    border-radius: 30px;
    font-size: 0.95rem;
    display: inline-block;
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.skill-category li:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}



/* Process Section */
.process-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--coral-red), #ff8a80);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 107, 107, 0.3);
    z-index: 1;
}

.process-step:last-child::before {
    display: none;
}

.process-step h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 4rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #F96F6E;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-item.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 3rem 0;
        min-height: 500px;
        background-attachment: scroll;
    }

    .portfolio-hero .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
        min-height: auto;
        padding: 0 1rem;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin-top: 0;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 10;
        background: rgba(0, 0, 0, 0.4);
        padding: 1.5rem;
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }

    .hero-graphic {
        display: none;
    }

    .hero-subtitle {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        max-width: 100%;
        position: relative;
        z-index: 5;
        justify-self: center;
    }

    .tab-navigation {
        display: none;
    }

    .portfolio-hero h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .impact-overview {
        margin: 1.5rem 0;
    }

    .primary-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .primary-number {
        font-size: 2rem;
    }

    .primary-stat {
        padding: 1rem;
    }

    .impact-breakdown {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .breakdown-section {
        padding: 1rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0;
        padding: 0 1rem;
    }

    .portfolio-image {
        height: 250px;
    }

    .portfolio-item.featured .portfolio-image {
        height: 300px;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-metrics {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step::before {
        display: none;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 2rem 0;
        min-height: 450px;
    }

    .portfolio-hero .container {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .hero-content {
        margin-top: 0;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.5);
    }

    .portfolio-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin: 0;
    }

    .enhanced-tab-navigation {
        margin: 0.5rem 0;
    }

    .impact-overview {
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    .primary-stats {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding: 0;
    }

    .primary-number {
        font-size: 1.8rem;
    }

    .primary-stat {
        padding: 0.75rem;
    }

    .primary-label {
        font-size: 0.9rem;
    }

    .impact-breakdown {
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .breakdown-section {
        padding: 0.75rem;
        margin: 0;
        overflow-x: hidden;
    }

    .breakdown-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
    }

    .breakdown-number {
        font-size: 1.1rem;
    }

    .breakdown-label {
        font-size: 0.75rem;
    }

    .performance-charts .chart-container {
        gap: 1rem;
    }

    .progress-bar {
        height: 20px;
    }

    .progress-value {
        font-size: 0.7rem;
        right: 6px;
    }

    .metric-highlight {
        padding: 0.75rem;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    .metric-desc {
        font-size: 0.8rem;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .skill-category {
        padding: 2rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 2rem;
    }
}

/* Extra Small Devices - Mobile Optimization */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .portfolio-hero {
        padding: 1rem 0;
    }
    
    .portfolio-hero h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 14px;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
    
    .frosted-glass-container {
        padding: 16px;
        padding-left: 16px;
        margin: 0 0.5rem;
        font-size: 14px;
    }
    
    .tab-navigation {
        left: 0.5rem;
        right: 0.5rem;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .primary-number {
        font-size: 1.5rem;
    }
    
    .primary-stat {
        padding: 0.5rem;
    }
    
    .primary-label {
        font-size: 0.8rem;
    }
    
    .section-header .section-title {
        font-size: 1.6rem;
    }
    
    .section-header .section-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .header-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .portfolio-grid {
        padding: 0 0.25rem;
        gap: 1rem;
    }
    
    .impact-overview {
        padding: 0 0.25rem;
    }
    
    .portfolio-content {
        padding: 1rem 0.75rem;
    }
    
    .cv-actions {
        gap: 0.5rem;
    }
    
    .cv-actions .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Tab Navigation Styles */
.tab-navigation {
    position: static;
    z-index: 4;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 140px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--coral-red);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* Shimmer effect for all tabs */
.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

/* Enhanced hover effects */
.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    border-color: var(--coral-red);
}

.tab-btn:active {
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--coral-red), #ff8a80);
    border-color: var(--coral-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 107, 107, 0.6);
    color: white;
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active)::after {
    transform: translateX(-50%) scaleX(0.5);
}

.tab-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

/* Tab indicators */
.tab-indicator {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tab-btn:hover .tab-indicator {
    opacity: 1;
    transform: scale(1.2);
}



/* Tab content transitions */
.tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Tab Content Styles */
.tab-content-container {
    position: relative;
    margin-top: 2rem;
    clear: both;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#in-practice {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#in-practice .section-header {
    margin-bottom: 1rem !important;
}

.numbers-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    min-height: 80vh;
}

#in-practice.numbers-section {
    padding: 2rem 0 8rem 0 !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
}

.blog-section {
    padding: 2rem 0 4rem 0;
    background: var(--bg-primary);
}

.blog-section .portfolio-grid {
    margin-top: 4rem;
}

.impact-breakdown {
    margin-top: 6rem;
    padding-top: 2rem;
}

.section-header {
    margin-bottom: 1rem !important;
    padding-top: 0.5rem;
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 8rem;
}

.header-left {
    flex: 0 0 auto;
    min-width: 300px;
}

.header-right {
    flex: 1;
    padding-top: 0.5rem;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
    text-align: left;
}

.section-header .section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: left;
}

/* Responsive design for interactive elements */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .header-left {
        min-width: auto;
    }
    
    .section-header .section-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .section-header .section-description {
        text-align: center;
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Mobile tab navigation adjustments */
    .tab-navigation {
        left: 1rem;
        right: 1rem;
        max-width: none;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 30px;
        padding: 0;
    }
    
    .tab-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .tab-indicator {
        font-size: 0.8rem;
    }
    

    
    /* Adjust tooltips for mobile */
    .tab-btn::after {
        max-width: 250px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        bottom: 130%;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .tab-btn:hover {
            transform: none;
        }
        
        .tab-btn::after,
        .tab-btn::before {
            display: none;
        }
        
        .tab-btn:not(.active) {
            animation: subtlePulse 2s ease-in-out infinite;
        }
    }
}

.cv-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cv-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cv-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.cv-actions .btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cv-actions .btn-primary {
    background-color: var(--coral-red);
    color: white;
    border: 2px solid var(--coral-red);
}

.cv-actions .btn-primary:hover {
    background-color: transparent;
    color: var(--coral-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.cv-actions .btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cv-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.cv-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.highlight-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.highlight-period {
    color: #007acc;
    font-weight: 500;
    font-size: 0.9rem;
}

/* CV Tab Experience Sections */
.experience {
    padding: 2rem 0;
    margin-top: 3rem;
}

.company-section {
    margin-bottom: 3rem;
}

.company-name {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #007acc;
    padding-bottom: 0.5rem;
}

.role {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.role-header h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.location-date {
    color: #007acc;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

.achievements li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #007acc;
    font-weight: bold;
}

/* Skills Section */
.skills {
    padding: 2rem 0;
    background: #f8f9fa;
}

.skills h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skill-category h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    padding: 0.3rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Education Section */
.education {
    padding: 2rem 0;
}

.education h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.education-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.education-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.education-item p {
    color: #666;
    margin: 0;
}

/* Responsive Tab Styles */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 200px;
        text-align: center;
    }
    
    .cv-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cv-actions .btn {
        width: 200px;
        text-align: center;
    }
    
    .cv-highlights {
         grid-template-columns: 1fr;
     }
     
     .role-header {
         flex-direction: column;
         align-items: flex-start;
         gap: 0.5rem;
     }
     
     .role-header h3 {
         min-width: auto;
         font-size: 1.1rem;
     }
     
     .company-name {
         font-size: 1.5rem;
     }
     
     .skills-grid {
         grid-template-columns: 1fr;
     }
     
     .education-content {
         grid-template-columns: 1fr;
     }
}

/* CV One-Pager Styles */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --coral-red: #F96F6E;
    --accent-blue: #007acc;
}

.cv-separator {
    height: 1px;
    background: var(--text-primary);
    margin: 2rem 0;
    border-radius: 1px;
}

.cv-onepager {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 3rem 0;
    font-family: 'Inter', sans-serif;
}

.cv-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cv-onepager .header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--text-primary);
}

.cv-onepager .name {
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.cv-onepager .title {
    font-size: 1.2rem;
    color: var(--coral-red);
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.cv-onepager .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cv-onepager .summary {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--coral-red);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 8px 8px 0;
}

.cv-onepager .summary p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cv-onepager .section {
    margin-bottom: 2.5rem;
}

.cv-onepager .section-title {
    color: var(--coral-red);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    font-family: 'Big Shoulders Display', sans-serif;
}

.cv-onepager .experience-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.cv-onepager .experience-item:last-child {
    border-bottom: none;
}

.cv-onepager .role-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-onepager .role-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.cv-onepager .company {
    color: var(--coral-red);
    font-weight: 500;
}

.cv-onepager .duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.cv-onepager .achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-onepager .achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cv-onepager .achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--coral-red);
    font-weight: bold;
}

.cv-onepager .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.cv-onepager .skill-category {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cv-onepager .skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.cv-onepager .skill-category:hover::before {
    left: 100%;
}

.cv-onepager .skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--coral-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cv-onepager .skill-category h4 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border-bottom: none;
    padding-bottom: 0;
}

.cv-onepager .skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.cv-onepager .skill-category li {
    color: black;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.4;
    background: white;
    border: 2px solid var(--coral-red);
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cv-onepager .skill-category li:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    background: var(--coral-red);
    color: white;
}

.cv-onepager .education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cv-onepager .education-item {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cv-onepager .education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(75, 85, 104, 0.1), transparent);
    transition: left 0.5s ease;
}

.cv-onepager .education-item:hover::before {
    left: 100%;
}

.cv-onepager .education-item:hover {
    transform: translateY(-8px);
    border-color: var(--cool-gray);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cv-onepager .education-item h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cv-onepager .education-item p {
    color: #4a4a4a;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cv-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .cv-onepager .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cv-onepager .role-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cv-onepager .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-onepager .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Tab Navigation Styles - Added for myexperience-experimental.html */
.enhanced-tab-navigation {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Hero Content Layout - Side by Side */
.hero-content-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.hero-content-layout .frosted-glass-container {
    flex: 2;
    max-width: 50%;
}

.hero-content-layout .enhanced-tab-navigation {
    flex: 2;
    max-width: 50%;
    margin-top: 0;
}

/* Remove old navigation inside frosted glass container styles */
.frosted-glass-container .enhanced-tab-navigation {
    display: none;
}

.tab-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 250px;
    text-align: center;
    cursor: pointer;
}

.tab-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tab-btn.active {
    background: rgba(255, 107, 107, 0.3);
    border-color: #FF6B6B;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.tab-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.tab-preview {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    padding: 0 1rem;
    margin: 0;
}

/* CRITICAL FIX: Container Spacing to Prevent Overlapping */
.tab-content-container {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.tab-content {
    position: relative;
    z-index: 2;
    background: #1a1a1a;
    padding-top: 2rem;
}

.portfolio-hero {
    position: relative;
    z-index: 3;
    margin-bottom: 2rem;
}

/* Enhanced Scroll Indicator */
.enhanced-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

/* Mobile Responsive for Enhanced Tabs */
@media (max-width: 768px) {
    /* Stack layout vertically on mobile */
    .hero-content-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content-layout .frosted-glass-container,
    .hero-content-layout .enhanced-tab-navigation {
        max-width: 100%;
        flex: none;
    }
    
    .hero-content-layout .enhanced-tab-navigation {
        margin-top: 1rem;
    }
    
    /* Hide empty hero-content container on mobile */
    .hero-content {
        display: none;
    }
     
     /* Ensure the new tab navigation section has proper spacing */
     .tab-navigation-section {
         padding: 2rem 0 !important;
         background: transparent !important;
         position: relative !important;
     }
    
    /* Fix the floating buttons - make them part of normal document flow */
    .floating-buttons,
    .cta-overlay,
    [class*="experience-buttons"] {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 2rem 1rem;
        z-index: auto;
    }
    
    /* Stack buttons vertically with proper spacing */
    .button-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1rem;
    }
    
    /* Remove all absolute/fixed positioning from navigation buttons */
    .experience-nav-buttons {
        position: static !important;
        margin-top: 3rem;
    }
    
    .enhanced-tab-navigation {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-top: 2rem !important;
        z-index: 1 !important;
        float: none !important;
    }
    
    /* Override any conflicting rules with higher specificity */
    .hero-content + .enhanced-tab-navigation {
        margin-top: 1rem !important;
        position: relative !important;
        transform: none !important;
    }
    
    /* Ensure hero subtitle has proper spacing */
    .hero-subtitle {
        margin-top: 1rem !important;
    }
    
    .tab-group {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .tab-btn {
        position: relative !important;
        z-index: auto !important;
        width: 100%;
        margin: 0.5rem 0;
        float: none !important;
        transform: none !important;
    }
    
    /* DIAGNOSTIC CSS - Force static positioning for all child elements */
    .enhanced-tab-navigation * {
        position: static !important;
        float: none !important;
        transform: none !important;
    }
    
    /* Override the diagnostic rule for direct children that need relative positioning */
    .enhanced-tab-navigation > .tab-group,
    .enhanced-tab-navigation .tab-btn {
        position: relative !important;
    }
    
    .tab-btn {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        min-width: 100%;
        padding: 1rem 1.5rem;
        margin: 0;
        display: block;
        width: 100%;
        min-height: 48px;
    }
    
    .tab-title {
        font-size: 1.1rem;
    }
    
    .tab-preview {
        font-size: 0.85rem;
        padding: 0 1.25rem;
    }
    
    /* Ensure main content has proper spacing */
    .tab-content-container {
        margin-top: 2rem;
        position: relative;
        z-index: 1;
        padding: 2rem 1rem;
    }
    
    /* Stack elements vertically on mobile */
    .portfolio-hero .container {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    /* Increase section spacing for better readability */
    .section {
        padding: 3rem 1.5rem 2rem 1.5rem;
    }
    
    /* Add more breathing room between sections */
    .stats-section,
    .numbers-section,
    .campaign-portfolio {
        margin-bottom: 3rem;
    }
    
    /* Improve text readability on mobile */
    .main-text p {
        line-height: 1.6;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Better stats card spacing */
    .primary-stats {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .primary-stat {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Make CTAs more thumb-friendly */
    .cta-button,
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin: 0.75rem 0;
    }
    
    /* Additional fixes for any remaining floating elements */
    .tab-navigation,
    .nav-buttons,
    .action-buttons,
    .overlay-buttons {
        position: static !important;
        margin: 2rem auto;
        display: block;
        width: 100%;
        max-width: 400px;
    }
    
    /* Ensure proper content flow */
    .hero-content + .enhanced-tab-navigation {
        margin-top: 1rem !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .enhanced-tab-navigation {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 1rem 0;
        z-index: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .tab-group {
        gap: 1.25rem;
        width: 100%;
        max-width: 350px;
    }
    
    .tab-btn {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        padding: 0.75rem 1rem;
        min-width: 100%;
        margin: 0;
        display: block;
        width: 100%;
    }
    
    .tab-title {
        font-size: 1rem;
    }
    
    .tab-preview {
        font-size: 0.8rem;
        padding: 0 1.5rem;
        line-height: 1.3;
    }
    
    /* Reduce button sizes on mobile */
     .tab-btn {
         max-width: 280px;
         margin: 0.5rem auto;
         min-height: 48px;
     }
     
     .tab-content-container {
         margin-top: 1.5rem;
         padding: 1rem 0.75rem;
     }
     
     /* Enhanced mobile spacing for small screens */
     .section {
         padding: 2.5rem 1rem 1.5rem 1rem;
     }
     
     .stats-section,
     .numbers-section,
     .campaign-portfolio {
         margin-bottom: 2.5rem;
     }
     
     /* Optimized typography for small screens */
     .main-text p {
         line-height: 1.6;
         font-size: 1rem;
         margin-bottom: 1.25rem;
     }
     
     .section-title {
         font-size: 1.6rem;
         margin-bottom: 1.5rem;
     }
     
     /* Compact stats for small screens */
     .primary-stats {
         gap: 1.25rem;
         padding: 0 0.75rem;
     }
     
     .primary-stat {
         padding: 1.5rem 1rem;
         margin-bottom: 0.75rem;
     }
     
     /* Thumb-friendly buttons for small screens */
     .cta-button,
     .btn {
         min-height: 48px;
         padding: 0.875rem 1.5rem;
         font-size: 0.95rem;
         margin: 0.5rem 0;
     }
}

/* Hide old tab navigation if it still exists */
.tab-navigation {
    display: none;
}

/* NEW HERO SECTION - MOBILE FIRST CSS */
/* Replace the existing .portfolio-hero styles with these */

.experience-hero-new {
    margin-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/experiemcia_grafico-comic.PNG') no-repeat center center;
    background-size: cover;
    padding: 2rem 0 3rem 0;
    min-height: auto;
    position: relative;
    animation: subtle-flutter 12s ease-in-out infinite alternate;
}

.experience-hero-new .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Hero Title */
.hero-title {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title h1 {
    font-size: 2.5rem;
    color: var(--coral-red);
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Main Content Block - Frosted Glass Effect */
.hero-content-block {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(249, 111, 110, 0.6);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.hero-content-block p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-content-block p:last-child {
    margin-bottom: 0;
}

.hero-content-block strong {
    color: var(--coral-red);
    font-weight: 700;
}

/* Navigation Cards */
.hero-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(249, 111, 110, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    background: rgba(249, 111, 110, 0.2);
    border-color: rgba(249, 111, 110, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 111, 110, 0.6);
}

.nav-card.active,
.nav-card:first-child {
    background: rgba(249, 111, 110, 0.3);
    border-color: rgba(249, 111, 110, 1);
}

.nav-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nav-card-desc {
    font-size: 0.95rem;
    color: #f0f0f0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .experience-hero-new {
        padding: 4rem 0 5rem 0;
    }

    .hero-title h1 {
        font-size: 3.5rem;
    }

    .hero-content-block {
        padding: 3rem;
        margin-bottom: 4rem;
        max-width: none;
        width: 100%;
    }

    .hero-content-block p {
        font-size: 1.2rem;
    }

    .hero-navigation {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-card {
        flex: 1;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-content-block p {
        font-size: 1.25rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }
}

/* IMPORTANT: Hide the old problematic hero section */
.portfolio-hero {
    display: none !important;
}

/* Mobile Visual Collage Styles */
/* Show collage only on mobile */
.mobile-only { display: none; }

@media (max-width: 768px){
    /* Hide the old parallax gallery on phones */
    #gallery-container { display: none !important; }

    /* Ensure hero is flex so we can reorder */
    .relative.z-10.max-w-6xl.mx-auto.px-6.py-20.mt-16 {
        display: flex;
        flex-direction: column;
    }

    /* Pull the collage above the headline */
    .m-hero {
        order: -1;
        display: block;
        margin: 0 0 16px 0;
    }

    /* Grid layout for the tiles */
    .m-tiles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 12px;
    }

    /* Large lead tile spans width */
    .m-tiles .m-tile:first-child {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .m-tile {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #111;
        aspect-ratio: 1 / 1;            /* square thumbs */
        border: 1px solid rgba(255,255,255,.08);
        transition: transform 0.2s ease;
    }

    .m-tile:hover {
        transform: scale(1.02);
    }

    .m-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* subtle label chip */
    .m-tag {
        position: absolute;
        left: 8px; bottom: 8px;
        font: 600 11px/1 Inter, sans-serif;
        color: white;
        padding: 6px 8px;
        border-radius: 999px;
        background: rgba(0,0,0,.45);
        border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(4px);
    }
}

/* Desktop: keep collage hidden */
@media (min-width: 769px){
    .m-hero { display: none; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .m-tile {
        transition: none;
    }
    .m-tile:hover {
        transform: none;
    }
}