/* =======================
   MODERN CV REDESIGN
   ======================= */

/* === GLOBAL STYLES === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #E5E5E5;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

/* Ensure body is visible even if animation doesn't complete */
body.loaded,
body:not(.loaded) {
    opacity: 1 !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hide Cloudflare challenge iframes and scripts */
iframe[height="1"][width="1"],
iframe[style*="visibility: hidden"],
iframe[style*="visibility:hidden"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.container-fluid {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.row {
    margin-left: 0;
    margin-right: 0;
    height: 100%;
    flex: 1;
}

/* === LEFT SECTION === */
.left {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 40px 30px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}



/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(248, 163, 47, 0.2);
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.badge-role {
    display: inline-block;
    background: linear-gradient(135deg, #F8A32F 0%, #f79816 100%);
    color: #0f0f0f;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(248, 163, 47, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(248, 163, 47, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(248, 163, 47, 0.6);
    }
}

.name {
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 800;
    margin: 15px 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(248, 163, 47, 0.3);
}

.tagline {
    color: #F8A32F;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* Privacy/Info Section */
.privacy {
    margin-bottom: 25px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    color: #E5E5E5;
    font-size: 16px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(248, 163, 47, 0.1);
}

.info-list li:hover {
    padding-left: 10px;
    border-bottom-color: rgba(248, 163, 47, 0.3);
}

.info-list li i {
    color: #F8A32F;
    margin-right: 12px;
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.info-list li span {
    flex: 1;
}

/* Left Box Sections */
.left-box {
    padding: 25px 0;
    animation: slideInLeft 0.8s ease-out;
}

.left-box h2 {
    font-size: 20px;
    color: #F8A32F;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(248, 163, 47, 0.3);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-box h2 i {
    font-size: 22px;
}

/* Contact List */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li a {
    color: #F8A32F;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(248, 163, 47, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(248, 163, 47, 0.2);
}

.contact-list li a:hover {
    background: rgba(248, 163, 47, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(248, 163, 47, 0.2);
}

.contact-list li a i {
    margin-right: 10px;
    font-size: 18px;
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.language-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(248, 163, 47, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(248, 163, 47, 0.1);
}

.language-item:hover {
    transform: translateY(-5px);
    background: rgba(248, 163, 47, 0.1);
    box-shadow: 0 8px 20px rgba(248, 163, 47, 0.2);
}

.language-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.language-item span {
    display: block;
    color: #F8A32F;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.language-item small {
    display: block;
    color: #B8B8B8;
    font-size: 12px;
}

/* Skills/Atouts List */
.atouts, .interests {
    list-style: none;
    padding: 0;
    margin: 0;
}

.atouts li, .interests li {
    color: #E5E5E5;
    font-size: 16px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.atouts li:hover, .interests li:hover {
    padding-left: 10px;
    color: #F8A32F;
}

.atouts li i, .interests li i {
    color: #F8A32F;
    margin-right: 12px;
    font-size: 16px;
    width: 25px;
    text-align: center;
}

/* === RIGHT SECTION === */
.right {
    background: linear-gradient(180deg, #1a1a1a 0%, #252525 100%);
    color: #E5E5E5;
    padding: 40px 40px;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.right-box {
    padding: 30px 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #F8A32F;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(248, 163, 47, 0.3);
}

.section-title i {
    font-size: 32px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #F8A32F 0%, #f79816 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #F8A32F;
    border: 3px solid #1a1a1a;
    box-shadow: 0 0 15px rgba(248, 163, 47, 0.5);
    z-index: 1;
}

.timeline-date {
    margin-bottom: 10px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-warning {
    background: linear-gradient(135deg, #F8A32F 0%, #f79816 100%);
    color: #0f0f0f;
    border: none;
    box-shadow: 0 4px 10px rgba(248, 163, 47, 0.3);
}

.badge-secondary {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    color: #F8A32F;
    border: 1px solid rgba(248, 163, 47, 0.3);
}

.timeline-content {
    background: rgba(248, 163, 47, 0.03);
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid #F8A32F;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(248, 163, 47, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.experience-title a {
    color: #F8A32F;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.experience-title a:hover {
    color: #fab960;
}

.experience-title a i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.experience-company {
    color: #B8B8B8;
    font-size: 16px;
    margin: 8px 0;
    font-style: italic;
}

.experience-company i {
    color: #F8A32F;
    margin-right: 8px;
}

.experience-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(248, 163, 47, 0.2);
}

.mission-intro {
    color: #F8A32F;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 17px;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    color: #E5E5E5;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
}

.mission-list li i {
    color: #F8A32F;
    margin-right: 12px;
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Education */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.education-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(248, 163, 47, 0.03);
    border-radius: 12px;
    border-left: 3px solid #F8A32F;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.education-item:hover {
    background: rgba(248, 163, 47, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.education-content {
    flex: 1;
}

.education-content h4 {
    color: #F8A32F;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.education-content p {
    color: #B8B8B8;
    font-size: 16px;
    margin: 0;
}

.education-content p i {
    color: #F8A32F;
    margin-right: 8px;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    text-align: center;
    padding: 20px 15px;
    background: rgba(248, 163, 47, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(248, 163, 47, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.tech-item:hover {
    background: rgba(248, 163, 47, 0.1);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(248, 163, 47, 0.3);
    border-color: rgba(248, 163, 47, 0.5);
}

.tech-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tech-item:hover img {
    transform: scale(1.1) rotateY(10deg);
}

.tech-item span {
    display: block;
    color: #E5E5E5;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tech-item:hover span {
    color: #F8A32F;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 991px) {
    .left {
        padding: 30px 20px;
    }
    
    .right {
        padding: 30px 20px;
    }
    
    .name {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .tech-item img {
        width: 48px;
        height: 48px;
    }
    
    .tech-item span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .language-item img {
        width: 40px;
        height: 40px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background: white;
    }
    
    .left, .right {
        background: white;
        box-shadow: none;
    }
    
    .section-title, .name, .badge-role, .left-box h2 {
        color: #000;
    }
    
    .timeline::before, .timeline-item::before {
        display: none;
    }
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F8A32F 0%, #f79816 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fab960 0%, #F8A32F 100%);
}
