/* ============================================
   AI CV Builder Section - Professional Styles
   ============================================ */

/* Banner AI CV Highlight Badge */
.twm-ai-cv-highlight {
    background: linear-gradient(135deg, #0f9cf3 0%, #0d8ad8 100%);
    padding: 18px 24px;
    border-radius: 12px;
    border-left: 5px solid #0f9cf3;
    box-shadow: 0 8px 25px rgba(15, 156, 243, 0.3);
    animation: slideInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.twm-ai-cv-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.ai-cv-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.ai-cv-badge i {
    font-size: 20px;
    color: #0f9cf3;
    animation: pulse 2s infinite;
}

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

.ai-cv-badge .site-text-primary {
    background: #0f9cf3;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-cv-badge strong {
    font-weight: 700;
    color: #fff;
}

.ai-cv-badge a {
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: underline !important;
}

.ai-cv-badge a:hover {
    color: #fff !important;
    transform: translateX(5px);
}

/* ============================================
   AI CV Builder Main Section
   ============================================ */

.twm-ai-cv-builder-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

.twm-ai-cv-builder-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: radial-gradient(circle at top center, rgba(15, 156, 243, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Left Content Section */
.twm-ai-cv-builder-left {
    position: relative;
    z-index: 2;
}

.twm-ai-cv-builder-left .wt-small-separator i {
    margin-right: 8px;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Feature Items */
.twm-ai-features-list {
    margin-top: 40px;
}

.ai-feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(15, 156, 243, 0.1);
}

.ai-feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(15, 156, 243, 0.2);
    border-color: rgba(15, 156, 243, 0.3);
}

.ai-feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f9cf3 0%, #0d8ad8 100%);
    border-radius: 16px;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 156, 243, 0.3);
    transition: all 0.3s ease;
}

.ai-feature-item:hover .ai-feature-icon {
    transform: rotate(360deg) scale(1.1);
}

.ai-feature-content h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.ai-feature-content p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

/* Action Button Area */
.twm-ai-cv-action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.twm-ai-cv-action .site-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #0f9cf3 0%, #0d8ad8 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(15, 156, 243, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.twm-ai-cv-action .site-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.twm-ai-cv-action .site-button:hover::before {
    left: 100%;
}

.twm-ai-cv-action .site-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(15, 156, 243, 0.5);
}

.twm-ai-cv-action .site-button i {
    font-size: 18px;
}

.ai-cv-users-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(15, 156, 243, 0.08);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.ai-cv-users-count i {
    font-size: 16px;
    color: #0f9cf3 !important;
}

/* ============================================
   CV Preview Card (Right Section)
   ============================================ */

.twm-ai-cv-builder-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.twm-ai-cv-preview {
    position: relative;
    width: 100%;
    max-width: 420px;
    z-index: 2;
}

/* CV Card */
.cv-preview-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}

.cv-preview-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 25px 70px rgba(15, 156, 243, 0.3);
}

/* CV Header */
.cv-card-header {
    background: linear-gradient(135deg, #0f9cf3 0%, #0d8ad8 100%);
    padding: 35px 25px;
    display: flex;
    gap: 18px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cv-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cv-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 4px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cv-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.cv-lines span {
    height: 12px;
    background: rgba(255,255,255,0.35);
    border-radius: 6px;
    display: block;
    animation: lineGrow 1.5s ease-in-out infinite;
}

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

.cv-lines span:first-child {
    width: 75%;
    animation-delay: 0.2s;
}

.cv-lines span:last-child {
    width: 55%;
    animation-delay: 0.4s;
}

/* CV Body */
.cv-card-body {
    padding: 30px 25px;
    background: #ffffff;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-line {
    height: 10px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 5px;
    margin-bottom: 12px;
    animation: shimmerLine 2s infinite;
}

@keyframes shimmerLine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.cv-line.long {
    width: 100%;
}

.cv-line.medium {
    width: 80%;
}

.cv-line.short {
    width: 60%;
}

/* ============================================
   Floating Badges
   ============================================ */

.cv-builder-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.cv-badge {
    position: absolute;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    border: 2px solid rgba(15, 156, 243, 0.2);
}

.cv-badge i {
    font-size: 18px;
    color: #0f9cf3 !important;
}

.cv-badge:nth-child(1) {
    top: 8%;
    left: -12%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
}

.cv-badge:nth-child(2) {
    top: 48%;
    right: -12%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
}

.cv-badge:nth-child(3) {
    bottom: 12%;
    left: -8%;
    background: linear-gradient(135deg, #fff 0%, #f8f9fc 100%);
}

/* ============================================
   Animations
   ============================================ */

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

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

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

.bounce {
    animation: bounce 2.5s ease-in-out infinite;
}

.bounce2 {
    animation: bounce2 3s ease-in-out infinite;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and Below (iPad, tablets) */
@media (max-width: 1024px) {
    .twm-ai-cv-builder-section {
        padding: 80px 0 60px;
    }
    
    .ai-feature-item {
        padding: 22px;
    }
    
    .ai-feature-content h4 {
        font-size: 19px;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .twm-ai-cv-builder-right {
        margin-top: 60px;
    }
    
    .cv-preview-card {
        transform: perspective(1000px) rotateY(0deg);
        max-width: 380px;
        margin: 0 auto;
    }
    
    .cv-badge:nth-child(1),
    .cv-badge:nth-child(2),
    .cv-badge:nth-child(3) {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cv-badge:nth-child(1) {
        top: -60px;
    }
    
    .cv-badge:nth-child(2) {
        right: auto;
        top: 50%;
    }
    
    .cv-badge:nth-child(3) {
        bottom: -60px;
        top: auto;
    }
    
    .twm-ai-cv-builder-left .wt-title {
        font-size: 32px;
    }
}

/* Mobile Landscape and Below */
@media (max-width: 767px) {
    /* Banner AI Highlight */
    .twm-ai-cv-highlight {
        padding: 15px 18px;
        margin-bottom: 20px !important;
    }
    
    .ai-cv-badge {
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        line-height: 1.8;
    }
    
    .ai-cv-badge br {
        display: none;
    }
    
    /* AI CV Builder Section */
    .twm-ai-cv-builder-section {
        padding: 60px 0 50px;
    }
    
    .twm-ai-cv-builder-left {
        padding: 0 15px;
    }
    
    .twm-ai-cv-builder-left .wt-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .twm-ai-cv-builder-left .wt-small-separator {
        font-size: 14px;
    }
    
    .twm-ai-cv-builder-left p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* Feature Items */
    .twm-ai-features-list {
        margin-top: 30px;
    }
    
    .ai-feature-item {
        padding: 18px;
        margin-bottom: 15px;
        flex-direction: row;
    }
    
    .ai-feature-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        flex-shrink: 0;
    }
    
    .ai-feature-content h4 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .ai-feature-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Action Area */
    .twm-ai-cv-action {
        flex-direction: column;
        margin-top: 30px;
        gap: 12px;
    }
    
    .twm-ai-cv-action .site-button {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .ai-cv-users-count {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        font-size: 13px;
        padding: 10px 18px;
    }
    
    /* CV Preview */
    .twm-ai-cv-builder-right {
        margin-top: 50px;
        min-height: auto;
        padding: 0 15px;
    }
    
    .cv-preview-card {
        max-width: 100%;
    }
    
    .cv-builder-badges {
        display: none;
    }
    
    .cv-card-header {
        padding: 28px 20px;
    }
    
    .cv-card-body {
        padding: 25px 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    /* Banner AI Highlight */
    .twm-ai-cv-highlight {
        padding: 12px 15px;
        border-radius: 10px;
    }
    
    .ai-cv-badge {
        font-size: 12px;
        gap: 6px;
    }
    
    .ai-cv-badge i {
        font-size: 16px;
    }
    
    .ai-cv-badge .site-text-primary {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .ai-cv-badge strong {
        display: block;
        width: 100%;
        margin-top: 5px;
    }
    
    .ai-cv-badge a {
        display: block;
        width: 100%;
        margin-top: 8px;
        margin-left: 0 !important;
        text-align: center;
    }
    
    /* AI CV Builder Section */
    .twm-ai-cv-builder-section {
        padding: 50px 0 40px;
    }
    
    .twm-ai-cv-builder-left .wt-title {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .twm-ai-cv-builder-left p {
        font-size: 14px;
    }
    
    /* Feature Items - Stack vertically on small mobile */
    .ai-feature-item {
        padding: 16px;
        gap: 15px;
    }
    
    .ai-feature-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
    }
    
    .ai-feature-content h4 {
        font-size: 16px;
    }
    
    .ai-feature-content p {
        font-size: 13px;
    }
    
    /* Action Button */
    .twm-ai-cv-action .site-button {
        padding: 13px 24px;
        font-size: 14px;
        border-radius: 40px;
    }
    
    .ai-cv-users-count {
        font-size: 12px;
        padding: 9px 16px;
    }
    
    /* CV Preview */
    .twm-ai-cv-builder-right {
        margin-top: 40px;
    }
    
    .cv-preview-card {
        border-radius: 16px;
    }
    
    .cv-card-header {
        padding: 22px 18px;
    }
    
    .cv-avatar {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }
    
    .cv-lines span {
        height: 10px;
    }
    
    .cv-card-body {
        padding: 22px 18px;
    }
    
    .cv-section {
        margin-bottom: 20px;
    }
    
    .cv-line {
        height: 9px;
        margin-bottom: 10px;
    }
}

/* Extra Small Mobile (iPhone SE, small phones) */
@media (max-width: 375px) {
    .twm-ai-cv-highlight {
        padding: 10px 12px;
    }
    
    .ai-cv-badge {
        font-size: 11px;
    }
    
    .twm-ai-cv-builder-left .wt-title {
        font-size: 22px;
    }
    
    .ai-feature-item {
        padding: 14px;
        gap: 12px;
    }
    
    .ai-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .ai-feature-content h4 {
        font-size: 15px;
    }
    
    .ai-feature-content p {
        font-size: 12px;
    }
    
    .twm-ai-cv-action .site-button {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .cv-card-header {
        padding: 20px 15px;
    }
    
    .cv-avatar {
        width: 50px;
        height: 50px;
    }
    
    .cv-card-body {
        padding: 20px 15px;
    }
}

/* Landscape Mode Fix for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .twm-ai-cv-builder-section {
        padding: 40px 0 30px;
    }
    
    .twm-ai-cv-builder-right {
        margin-top: 30px;
    }
    
    .cv-preview-card {
        max-width: 300px;
    }
    
    .ai-feature-item {
        margin-bottom: 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .ai-feature-item {
        transition: none;
    }
    
    .ai-feature-item:active {
        transform: scale(0.98);
    }
    
    .twm-ai-cv-action .site-button:active {
        transform: scale(0.97);
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cv-preview-card {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    }
    
    .ai-feature-item {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
}
