@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --bg-glass: rgba(255, 255, 255, 0.7);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #f8fafc;
    font-family: 'Vazirmatn', sans-serif;
    color: #1e293b;
}

.main-wrapper {
    max-width: 1400px;
    height: calc(100vh - 4rem);
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
    background-size: 40px 40px;
}

.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.window-header {
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    z-index: 100;
}

.huge-text {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 0.8;
}

.outline-text {
    -webkit-text-stroke: 2px var(--primary);
    color: transparent;
}

/* Custom UI Elements */
.custom-input {
    width: 100%;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
}

.custom-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.05);
}

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

input:checked+.custom-check {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

input:checked+.custom-radio {
    border-color: var(--primary);
}

input:checked+.custom-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* Experience Timeline */
.exp-item {
    position: relative;
    padding-right: 3rem;
    margin-bottom: 3rem;
}

.exp-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: -3rem;
    width: 2px;
    background: #e2e8f0;
}

.exp-item:last-child::before {
    display: none;
}

.exp-dot {
    position: absolute;
    right: -5px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Floating Dock */
.floating-dock {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 200;
    display: flex;
    gap: 16px;
    opacity: 0;
    white-space: nowrap;
}

.floating-dock.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.floating-dock a {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    transition: color 0.3s;
}

.floating-dock a:hover {
    color: var(--primary);
}

/* Skill Bars */
.skill-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.skill-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 1s ease;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid #f1f5f9;
}

.accordion-header {
    padding: 2rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #64748b;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

@media (max-width: 768px) {
    .main-wrapper {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .huge-text {
        font-size: 4rem;
    }
}