/* FLUENT UI SYSTEM + GRASP ANIMATIONS — Technical Skills now with DISCIPLINED DIVIDERS & structure */
:root {
    /* Fluent Design System — Light Theme */
    --fluent-primary: #0078D4;
    --fluent-primary-hover: #106EBE;
    --fluent-primary-active: #005A9E;
    --fluent-neutral-dark: #323130;
    --fluent-neutral-light: #F3F2F1;
    --fluent-neutral-lighter: #FAF9F8;
    --fluent-white: #FFFFFF;
    --fluent-gray: #8A8886;
    --fluent-text-primary: #201F1E;
    --fluent-text-secondary: #605E5C;
    --fluent-accent: #CA5010;
    --fluent-success: #107C10;

    /* Fluent shadows — depth with motion */
    --fluent-shadow-card: 0 2px 4px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.1);
    --fluent-shadow-hover: 0 8px 16px rgba(0,0,0,0.1), 0 0 4px rgba(0,0,0,0.08);
    --fluent-shadow-raise: 0 20px 32px rgba(0,0,0,0.14), 0 0 8px rgba(0,0,0,0.08);
    
    /* spacing — fluent density */
    --fluent-spacing-4: 4px;
    --fluent-spacing-8: 8px;
    --fluent-spacing-12: 12px;
    --fluent-spacing-16: 16px;
    --fluent-spacing-20: 20px;
    --fluent-spacing-24: 24px;
    --fluent-spacing-32: 32px;
    --fluent-spacing-40: 40px;
    --fluent-spacing-48: 48px;
    
    /* typography */
    --fluent-font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --fluent-line-body: 1.5;
    --fluent-line-heading: 1.2;
    
    /* borders */
    --fluent-radius: 4px;
    --fluent-radius-card: 6px;
    
    /* GRASP transitions - smooth, responsive, purposeful */
    --grasp-ease: cubic-bezier(0.25, 0.1, 0.25, 1);    /* fluent ease */
    --grasp-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --grasp-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --grasp-duration-fast: 180ms;
    --grasp-duration-base: 280ms;
    --grasp-duration-slow: 380ms;
}

/* RESET with fluent consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fluent-font);
    color: var(--fluent-text-primary);
    background-color: var(--fluent-neutral-light);
    line-height: var(--fluent-line-body);
    direction: ltr;
    text-align: left;
}

h1, h2, h3, h4 {
    color: #000000;
    font-weight: 600;
    line-height: var(--fluent-line-heading);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--fluent-spacing-8);
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--fluent-primary);
    padding-bottom: var(--fluent-spacing-8);
    margin-bottom: var(--fluent-spacing-20);
}

h3 {
    font-size: 1.3rem;
    color: var(--fluent-primary-hover);
    margin-bottom: var(--fluent-spacing-8);
}

p {
    margin-bottom: var(--fluent-spacing-16);
}

a {
    color: var(--fluent-primary);
    text-decoration: none;
    transition: color var(--grasp-duration-fast) var(--grasp-ease);
}

a:hover {
    color: var(--fluent-primary-hover);
    text-decoration: underline;
}

/* LAYOUT — fluent container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--fluent-spacing-16);
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--fluent-spacing-32);
}

/* HEADER with fluent reveal */
.header {
    background-color: var(--fluent-white);
    padding: var(--fluent-spacing-40) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: var(--fluent-spacing-24);
    animation: slideInDown var(--grasp-duration-slow) var(--grasp-ease-out);
}

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

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-title {
    margin-bottom: var(--fluent-spacing-20);
}

.title-sub {
    color: var(--fluent-text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: var(--fluent-spacing-4);
}

/* CONTACT STRIP — fluent reveal with stagger */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--fluent-spacing-24);
    margin-bottom: var(--fluent-spacing-20);
    background-color: var(--fluent-neutral-light);
    padding: var(--fluent-spacing-16) var(--fluent-spacing-24);
    border-radius: var(--fluent-radius);
    width: 100%;
    max-width: 800px;
    transition: background-color var(--grasp-duration-fast) ease;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--fluent-spacing-8);
    transition: transform var(--grasp-duration-base) var(--grasp-ease-out);
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    color: var(--fluent-primary);
    font-size: 1.2rem;
}

/* CARD — fluent fluent fluent */
.card {
    background-color: var(--fluent-white);
    border-radius: var(--fluent-radius-card);
    box-shadow: var(--fluent-shadow-card);
    padding: var(--fluent-spacing-24);
    margin-bottom: var(--fluent-spacing-20);
    transition: box-shadow var(--grasp-duration-base) var(--grasp-ease),
                transform var(--grasp-duration-base) var(--grasp-ease-out);
    border: 1px solid transparent;
}

.card:hover {
    box-shadow: var(--fluent-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(0,120,212,0.08);
}

.highlight-card {
    border-left: 4px solid var(--fluent-primary);
    background: linear-gradient(to right, rgba(0,120,212,0.02), var(--fluent-white));
}

/* ============================================= */
/* TECHNICAL SKILLS – COMPLETE REFACTOR          */
/* DIVIDERS, DISCIPLINE, FLUENT HIERARCHY        */
/* ============================================= */

.skill-category {
    margin-bottom: var(--fluent-spacing-28);
    position: relative;
}

/* Skill header with divider – the core of discipline */
.skill-header {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--fluent-spacing-12);
}

.skill-header h3 {
    margin-bottom: var(--fluent-spacing-6);
    color: var(--fluent-text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

/* Main divider – elegant, fluent, always visible */
.skill-divider {
    width: 60px;
    height: 3px;
    background: var(--fluent-primary);
    border-radius: 10px;
    margin: var(--fluent-spacing-4) 0 var(--fluent-spacing-8) 0;
    transition: width var(--grasp-duration-base) var(--grasp-ease-out);
}

/* Category-specific divider colors – subtle discipline */
.skill-divider.architecture-divider {
    background: var(--fluent-accent);
}

.skill-divider.backend-divider {
    background: var(--fluent-success);
}

.skill-divider.devops-divider {
    background: var(--fluent-neutral-dark);
}

/* Divider expands on hover – GRASP micro-interaction */
.skill-category:hover .skill-divider {
    width: 100px;
}

.skill-category:hover .skill-divider.architecture-divider {
    background: var(--fluent-accent);
}

.skill-category:hover .skill-divider.backend-divider {
    background: var(--fluent-success);
}

.skill-category:hover .skill-divider.devops-divider {
    background: var(--fluent-neutral-dark);
}

/* SKILLS CONTAINER – disciplined spacing */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fluent-spacing-10);
    margin-top: var(--fluent-spacing-4);
    margin-bottom: var(--fluent-spacing-8);
}

/* SKILL TAGS – fluent, crisp */
.skill-tag {
    display: inline-block;
    background-color: rgba(0,120,212,0.08);
    color: var(--fluent-primary-hover);
    padding: var(--fluent-spacing-6) var(--fluent-spacing-18);
    border-radius: 32px;
    font-size: 0.9rem;
    font-weight: 550;
    border: 1px solid transparent;
    transition: all var(--grasp-duration-fast) var(--grasp-ease-out);
    cursor: default;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.skill-tag:hover {
    background-color: rgba(0,120,212,0.16);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,120,212,0.12);
    border-color: rgba(0,120,212,0.2);
}

/* skill variants — fluent colors */
.skill-tag.architecture {
    background-color: rgba(202,80,16,0.08);
    color: var(--fluent-accent);
}
.skill-tag.architecture:hover {
    background-color: rgba(202,80,16,0.16);
}

.skill-tag.backend {
    background-color: rgba(16,124,16,0.08);
    color: var(--fluent-success);
}
.skill-tag.backend:hover {
    background-color: rgba(16,124,16,0.16);
}

.skill-tag.devops {
    background-color: rgba(50,49,48,0.06);
    color: var(--fluent-neutral-dark);
}
.skill-tag.devops:hover {
    background-color: rgba(50,49,48,0.12);
}

/* Additional visual separation between skill categories 
   subtle top border for discipline, except first */
.skill-category:not(:first-of-type) {
    margin-top: var(--fluent-spacing-8);
    padding-top: var(--fluent-spacing-4);
}

/* ============================================= */
/* END TECHNICAL SKILLS REFACTOR                 */
/* ============================================= */

/* TIMELINE — fluent motion + GRASP */
.timeline-item {
    position: relative;
    padding-left: var(--fluent-spacing-32);
    margin-bottom: var(--fluent-spacing-32);
    border-left: 2px solid var(--fluent-primary);
    transition: transform var(--grasp-duration-base) var(--grasp-ease-out);
    animation: fadeInRight var(--grasp-duration-slow) var(--grasp-ease-out);
}
.timeline-item:hover {
    transform: translateX(4px);
}

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

.timeline-dot {
    position: absolute;
    top: 0;
    left: -9px;
    width: 16px;
    height: 16px;
    background-color: var(--fluent-primary);
    border-radius: 50%;
    border: 3px solid var(--fluent-white);
    box-shadow: 0 0 0 2px rgba(0,120,212,0.4);
    transition: all var(--grasp-duration-fast) var(--grasp-ease);
}
.timeline-item:hover .timeline-dot {
    transform: scale(1.25);
    background-color: var(--fluent-primary-hover);
    box-shadow: 0 0 0 4px rgba(0,120,212,0.2);
}

.timeline-date {
    display: inline-block;
    background-color: var(--fluent-primary);
    color: white;
    padding: var(--fluent-spacing-4) var(--fluent-spacing-16);
    border-radius: 32px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--fluent-spacing-12);
    transition: background-color var(--grasp-duration-fast) ease;
}
.timeline-item:hover .timeline-date {
    background-color: var(--fluent-primary-hover);
}

.company-name {
    color: var(--fluent-primary-dark);
    font-weight: 600;
    margin-bottom: var(--fluent-spacing-8);
}

/* PROJECT GRID — fluent + grasp */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--fluent-spacing-24);
}
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--grasp-duration-base) var(--grasp-ease-out);
    animation: scaleIn var(--grasp-duration-slow) var(--grasp-ease-out);
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fluent-shadow-raise);
}

.project-tags {
    margin-top: auto;
    padding-top: var(--fluent-spacing-16);
}

/* LANGUAGE — fluent bars */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--fluent-spacing-16);
    padding-bottom: var(--fluent-spacing-8);
    border-bottom: 1px solid var(--fluent-neutral-light);
}

.proficiency-bar {
    height: 8px;
    background-color: var(--fluent-neutral-light);
    border-radius: 10px;
    width: 60%;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.02);
}
.proficiency-level {
    height: 100%;
    background-color: var(--fluent-success);
    border-radius: 10px;
    width: 0%;
    transition: width 1s var(--grasp-ease-out);
    animation: loadBar 1.2s var(--grasp-ease-out);
}
@keyframes loadBar {
    0% { width: 0%; }
    100% { width: var(--target-width, 100%); }
}

/* FOOTER — fluent dark */
.footer {
    background-color: var(--fluent-neutral-dark);
    color: white;
    padding: var(--fluent-spacing-32) 0;
    margin-top: var(--fluent-spacing-48);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fluent-spacing-16);
}

.footer-links {
    display: flex;
    gap: var(--fluent-spacing-24);
    margin-top: var(--fluent-spacing-16);
}
.footer-links a {
    color: white;
    opacity: 0.9;
    transition: all var(--grasp-duration-fast) var(--grasp-ease);
}
.footer-links a:hover {
    color: white;
    opacity: 1;
    transform: translateY(-2px);
    text-decoration: none;
}

/* MOBILE & CROSS-PLATFORM - ENHANCED SPACING */
.mobile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px !important;  /* Increased vertical and horizontal gap */
    margin-top: 12px;
    margin-bottom: 8px;
}

.mobile-skills .skill-tag {
    margin-right: 0;  /* Remove any default margins */
    padding: 6px 20px;  /* Slightly larger padding for breathing room */
}
/* OPTION 2 - MAXIMUM VISUAL SEPARATION */
.mobile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px !important;  /* Generous spacing */
    margin-top: 16px;
    margin-bottom: 12px;
    background: rgba(0,120,212,0.02);  /* Very subtle background to define area */
    padding: 8px 4px;
    border-radius: 40px;
}
/* ===== FIXED SKILLS SPACING - ADDED [DATE] ===== */
.skills-container {
    gap: 16px 28px !important;  /* Vertical: 16px, Horizontal: 28px */
}

.skill-tag {
    padding: 6px 20px;
    margin: 0;
}

/* Optional: Even more spacing for mobile section */
.mobile-skills {
    gap: 18px 30px !important;
}


/* PRINT */
@media print {
    body { background: white; }
    .card { box-shadow: none; border: 1px solid #eee; }
    .contact-strip, .footer-links, .skill-tag:hover { transform: none; }
}

/* RESPONSIVE — fluent breakpoints */
@media (min-width: 768px) {
    .header-content { align-items: flex-start; text-align: left; }
    .contact-strip { justify-content: flex-start; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
}
@media (min-width: 1024px) {
    .main-grid { grid-template-columns: 1fr 2fr; }
    .header { padding: var(--fluent-spacing-48) 0; }
}

/* UTILITIES */
.sr-only { position: absolute; width: 1px; height: 1px; padding:0; margin: -1px; overflow: hidden; }
.mt-md { margin-top: var(--fluent-spacing-16); }

/* Additional spacing polish */
.skill-category:last-of-type {
    margin-bottom: var(--fluent-spacing-8);
}
