/* Modern CV Website - Styles */

/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   overflow-x: hidden;
   line-height: 1.6;
   background: var(--bg-primary);
   color: var(--text-primary);
   overflow-x: hidden;
   line-height: 1.6;
}

:root {
  /* Core palette */
  --bg-primary: #000000;        /* Full page background */
  --surface-1: #1A1A1A;         /* Cards / sections */
  --surface-2: #222222;         /* Alternate surface / borders */
  --text-primary: #FFFFFF;      /* Main text, headings */
  --text-muted: #9CA3AF;        /* Secondary text */

  --accent-purple: #86165D;     /* Highlights, emphasis */
  --accent-cyan: #168679;       /* Primary interactive / links */
  --accent-cyan-bright: #00FFFF;/* Legacy neon cyan as needed */
  --accent-green: #238616;      /* Success / emphasis */
  --accent-green-bright: #00FF7F;
  --alert-red: #FF4C4C;         /* Errors / warnings */

  /* Common gradients (Purple → Cyan → Green) */
  --grad-pcg: linear-gradient(135deg, #86165D 0%, #168679 50%, #238616 100%);
  --grad-pc:  linear-gradient(135deg, #86165D, #168679);
  --grad-cg:  linear-gradient(135deg, #168679, #238616);

  /* Controls */
  --border-1: #2A2A2A;
  --shadow-1: 0 10px 40px rgba(0,0,0,0.6);
  --shadow-2: 0 20px 60px rgba(0,0,0,0.7);
}

/* ===========================
   MAIN CONTAINER LAYOUT
   =========================== */
.container {
    display: flex;
    min-height: 100vh;
    padding: 40px;
    gap: 40px;
}

/* ===========================
   LEFT PROFILE SECTION (33%)
   =========================== */
.profile-section {
    width: 33%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 40px;
    height: fit-content;
}

.profile-image {
   width: 100%;
   aspect-ratio: 3/4;
   border-radius: 12px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
   position: relative;
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   background: var(--surface-2);
   
}

.profile-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

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

.profile-placeholder {
   display: none;
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   align-items: center;
   justify-content: center;
   font-size: 48px;
   color: white;
   font-weight: bold;
   background: var(--grad-pcg);
}

.header-info {
   animation: fadeInUp 0.8s ease-out;
}

.right-header {
   padding: 8px 0;              /* compact vertical spacing */
   border-bottom: 1px solid #E0E0E0;
}

.right-header .name {
   margin-bottom: 6px;          /* tighter than left column */
}

.right-header .subtitle {
   margin-bottom: 10px;
}

.right-header .availability {
   margin-top: 4px;
}

.name {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 10px;
   background: var(--grad-pc);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   line-height: 1.2;
}

.subtitle {
   font-size: 1.2rem;
   color: var(--text-muted);
   margin-bottom: 15px;
   font-weight: 500;
}

.availability {
   display: inline-block;
   padding: 12px 24px;
   background: var(--accent-green);
   color: var(--text-primary);
   border-radius: 25px;
   font-weight: 600;
   font-size: 0.95rem;
   animation: pulse 2s ease-in-out infinite;
}

/* ===========================
   RIGHT CARD DECK SECTION (67%)
   =========================== */
.card-deck-section {
   width: 67%;
   position: relative;
   min-height: 80vh;
   display: flex;
   flex-direction: column;
   align-items: stretch;
   justify-content: flex-start;
   gap: 24px;
}

.card-deck {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 700px;
    perspective: 1500px;
}

.cv-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--surface-1);
    border-radius: 20px;
    box-shadow: var(--shadow-1);
    padding: 40px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    overflow-y: auto;
    border: 1px solid var(--border-1);
}

.cv-card::-webkit-scrollbar {
    width: 8px;
}

.cv-card::-webkit-scrollbar-track {
    background: var(--surface-2);
    border-radius: 4px;
}

.cv-card::-webkit-scrollbar-thumb {
    background: var(--grad-pc);
    border-radius: 4px;
}

.cv-card:hover {
    z-index: 100 !important;
    transform: scale(1.05) !important;
    box-shadow: var(--shadow-2);
}

.cv-card.fullscreen {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    max-width: none;
    z-index: 1000 !important;
    transform: scale(1) !important;
    animation: expandCard 0.5s ease-out;
}

.card-header {
   font-size: 2rem;
   font-weight: 800;
   margin-bottom: 25px;
   background: var(--grad-pc);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.close-btn {
   display: none;
   position: absolute;
   top: 20px;
   right: 20px;
   width: 40px;
   height: 40px;
   background: var(--grad-pc); 
   border: none;
   border-radius: 50%;
   color: var(--text-primary);
   font-size: 24px;
   cursor: pointer;
   transition: all 0.3s ease;
   z-index: 1001;
   line-height: 1;
}

.cv-card.fullscreen .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--grad-pc);
}

/* ===========================
   EDUCATION & EXPERIENCE ITEMS
   =========================== */
.experience-item,
.education-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface-2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.experience-item:hover,
.education-item:hover {
    background: #2B2B2B; 
    transform: translateX(5px);
}

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.item-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--grad-cg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 24px;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-icon span {
    display: block;
}

.item-info h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 700;
}

.item-info .company {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.item-info .period {
    color: #A3A3A3;
    font-size: 0.9rem;
    font-style: italic;
}

.item-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 10px;
}

/* ===========================
   LANGUAGE SKILLS
   =========================== */
.language-item {
    margin-bottom: 25px;
}

.language-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.language-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-pc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 20px;
}

.language-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.language-icon span {
    display: block;
}

.language-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===========================
   PROGRESS BARS
   =========================== */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #2B2B2B;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--grad-cg);
    border-radius: 6px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
    width: 0%;
}

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

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.skills-section-title {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.skills-section-title.hard-skills {
    color: var(--accent-purple);
}

.skills-section-title.soft-skills {
    color: var(--accent-cyan);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.skill-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--grad-cg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
}

.skill-icon img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 6px;
}

.skill-icon span {
   display: block;
}

.skill-name {
   font-weight: 600;
   color: var(--text-primary);
   font-size: 1rem;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--surface-2);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--grad-pcg);
    color: var(--text-primary);
    transform: translateX(10px);
}

.contact-item:hover .contact-info a {
    color: var(--text-primary);
}

.contact-icon {
   width: 50px;
   height: 50px;
   border-radius: 50%;
   background: var(--grad-pc);
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--text-primary);
   font-size: 24px;
   flex-shrink: 0;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-icon span {
    display: block;
}

.contact-info {
    flex: 1;
}

.contact-info a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-info a:hover {
   color: var(--accent-cyan-bright);
   text-decoration: underline;
}

/* ===========================
   CHATBOT
   =========================== */
.chatbot-button {
   position: fixed;
   bottom: 30px;
   right: 30px;
   width: 70px;
   height: 70px;
   background: var(--grad-pcg);
   border: none;
   border-radius: 50%;
   color: white;
   font-size: 32px;
   cursor: pointer;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   transition: all 0.3s ease;
   z-index: 999;
   display: flex;
   align-items: center;
   justify-content: center;
}

.chatbot-button:hover {
   transform: scale(1.1) rotate(15deg);
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.chatbot-modal {
   display: none;
   position: fixed;
   bottom: 120px;
   right: 30px;
   width: 400px;
   height: 500px;
   background: var(--surface-1);
   border-radius: 20px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
   z-index: 998;
   flex-direction: column;
   animation: slideUp 0.3s ease-out;
}

.chatbot-modal.active {
    display: flex;
}

.chatbot-header {
   padding: 20px;
   background: var(--grad-pcg);
   color: white;
   border-radius: 20px 20px 0 0;
   font-weight: 600;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.chatbot-close {
   background: none;
   border: none;
   color: white;
   font-size: 24px;
   cursor: pointer;
   transition: transform 0.3s ease;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-messages {
   flex: 1;
   padding: 20px;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 10px;
}

.chatbot-messages::-webkit-scrollbar {
   width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
   background: #F5F5F5;
}

.chatbot-messages::-webkit-scrollbar-thumb {
   background: var(--grad-pc);
   border-radius: 3px;
}

.chatbot-input-area {
   padding: 20px;
   border-top: 1px solid #E0E0E0;
   display: flex;
   gap: 10px;
}

.chatbot-input {
   flex: 1;
   padding: 12px;
   border: 2px solid var(--border-1);
   background: var(--bg-primary);
   color: var(--text-primary);
   border-radius: 25px;
   outline: none;
   font-size: 14px;
   transition: border-color 0.3s ease;
}

.chatbot-input:focus {
   border-color: var(--accent-purple);
}

.chatbot-send {
   padding: 12px 24px;
   background: var(--grad-pcg);
   color: white;
   border: none;
   border-radius: 25px;
   cursor: pointer;
   font-weight: 600;
   transition: all 0.3s ease;
}

.chatbot-send:hover {
   transform: scale(1.05);
   box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

.message {
   padding: 12px 16px;
   border-radius: 18px;
   max-width: 80%;
   animation: fadeIn 0.3s ease-out;
   line-height: 1.5;
}

.message.user {
   background: var(--grad-pc);
   color: var(--text-primary);
   align-self: flex-end;
}

.message.bot {
   background: var(--surface-2);
   color: var(--text-primary);
   align-self: flex-start;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes expandCard {
    from {
        transform: scale(0.9);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .profile-section {
        width: 100%;
        position: relative;
        top: 0;
    }

    .card-deck-section {
        width: 100%;
    }

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

@media (max-width: 768px) {
    .chatbot-modal {
        width: calc(100vw - 40px);
        right: 20px;
    }

    .name {
        font-size: 2rem;
    }

    .cv-card {
        padding: 30px;
    }

    .card-header {
        font-size: 1.5rem;
    }

    .skills-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .profile-section {
        gap: 20px;
    }

    .name {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cv-card {
        padding: 20px;
    }

    .chatbot-button {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .chatbot-modal {
        height: 400px;
    }
}

/* Utilities */
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent-cyan) !important; }
.bg-surface { background: var(--surface-1) !important; }
.bg-surface-2 { background: var(--surface-2) !important; }
.border-1 { border: 1px solid var(--border-1) !important; }
.btn-accent { background: var(--grad-pcg); color: var(--text-primary); }
.badge-success { background: var(--accent-green); color: var(--text-primary); }
.badge-danger { background: var(--alert-red); color: var(--text-primary); }
